Add reviewer, assignee, milestone, and project inputs #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/3-pr-metadata-parity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR automation could set
labelsbut no other common metadata, so reviewers, assignees, milestones, and project linkage had to be added by hand after the run.This adds four inputs, applied to a newly created PR alongside
labelsthrough the Forgejo API the action already uses:reviewers/assignees: comma/newline lists, validated against the repo's reviewable/assignable users. An unknown name warns and is skipped; the valid names are still applied.milestone: matched by title, or treated as a milestone id when it is all digits. An unknown milestone warns and is skipped.project: by title or numeric id. Linking needs a Forgejo build that exposes the projects API; the current build does not, so the input warns and skips rather than failing.Metadata is stamped on create only (matching the existing
labelsbehavior), so re-running updates the branch/title/body without re-requesting reviewers or clobbering a milestone set by hand. Every field is best-effort: a bad value or a missing API warns, it never hard-fails the step. Documented in action.yml, the README (new PR metadata section), MIGRATION.md, and the changelog.Tested with
make all: the offline suite gains cases for reviewers + assignees set, an unknown reviewer/assignee (warns, valid still applied), milestone by name and by numeric id, an unknown milestone, no metadata inputs (endpoints omitted), project on a build without the projects API (warns, skips), project on a build with it (linked), an unknown project, and metadata being skipped on update.Closes #3.