Update release drafter workflow to support release branches#160
Update release drafter workflow to support release branches#160
Conversation
WalkthroughThe PR modifies the release-drafter GitHub Actions workflow to trigger on release-prefixed branches (release-**), support manual workflow dispatch, add explicit permissions, and configure the release-drafter action to base drafts on the triggering branch using the commitish parameter. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/release-drafter.yml (1)
24-24: Tighten the comment wording for trigger accuracy.Line 24 still implies merge-only behavior, but this workflow also runs on PR sync/open and manual dispatch.
Suggested wording
- # Drafts your next Release notes as Pull Requests are merged into "main" - # or a release branch + # Drafts/updates release notes for the current target branch + # on PR target events, pushes, and manual dispatch.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/release-drafter.yml at line 24, Replace the ambiguous comment "# or a release branch" with a more accurate comment that reflects all triggers—for example replace that line with something like "# also runs on pull_request (synchronize, opened) and workflow_dispatch" so the workflow's comment clearly indicates it runs on PR sync/open, manual dispatch, and release branches; update the existing comment string "# or a release branch" accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/release-drafter.yml:
- Line 24: Replace the ambiguous comment "# or a release branch" with a more
accurate comment that reflects all triggers—for example replace that line with
something like "# also runs on pull_request (synchronize, opened) and
workflow_dispatch" so the workflow's comment clearly indicates it runs on PR
sync/open, manual dispatch, and release branches; update the existing comment
string "# or a release branch" accordingly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 14d4a379-d77e-4c82-8cbd-6d67c9fb1eed
📒 Files selected for processing (1)
.github/workflows/release-drafter.yml
Summary by CodeRabbit