Skip to content

Assign source PR assignees to generated release PRs#112

Merged
teru01 merged 1 commit into
mainfrom
feat/assign-source-pr-assignees
May 15, 2026
Merged

Assign source PR assignees to generated release PRs#112
teru01 merged 1 commit into
mainfrom
feat/assign-source-pr-assignees

Conversation

@teru01

@teru01 teru01 commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Generated release/manifest PRs now inherit assignees from the source PRs they bundle.
  • generateBody collects the unique union of pr.Assignees[].Login from each source PR fetched while building the body, and returns them alongside the body.
  • processAttempt plumbs that list into the Release via the new SetAssignees setter; createPR calls Issues.AddAssignees after creating the PR (errors are logged, not fatal — same pattern as addLabels).
  • When source PRs have no assignees (or when HideSourceReleaseDesc / HideSourceReleasePullRequests skip the PR fetch), behavior is unchanged: no assignees are set.

Test plan

  • Existing flow/process_test.go continues to pass (go test ./...).
  • Trigger a release where a source PR has an assignee — generated release PR should be assigned to that user.
  • Trigger a release where the source PRs have no assignees — PR is created without assignees, as before.
  • Trigger a release whose source PRs collectively have multiple distinct assignees — all unique logins are applied, no duplicates.

🤖 Generated with Claude Code

@teru01 teru01 force-pushed the feat/assign-source-pr-assignees branch from d32fb16 to 46cf6e3 Compare May 15, 2026 08:05
Collect unique assignee logins from source PRs that appear in a release
diff and assign them to the generated manifest/release PR via the GitHub
Issues API. If no assignees are present, the PR is created with none, as
before.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: ono-teruya <27873650+teru01@users.noreply.github.com>
@teru01 teru01 force-pushed the feat/assign-source-pr-assignees branch from 46cf6e3 to 6d47b8c Compare May 15, 2026 08:08
@teru01 teru01 marked this pull request as ready for review May 15, 2026 08:33
@teru01 teru01 requested a review from dekokun May 15, 2026 08:33
@teru01 teru01 merged commit 78f0430 into main May 15, 2026
3 checks passed
@teru01 teru01 deleted the feat/assign-source-pr-assignees branch May 15, 2026 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants