Repository navigation
Conversation
Run release drafting only for main pushes and use the v7 autolabeler action for pull requests, without release write operations on PR events. Co-Authored-By: DSH Agent <dsh-agent@users.noreply.github.com> Signed-off-by: NginxL <8777777+NginxL@users.noreply.github.com>
👷 Deploy request for testcontainers-go pending review.Visit the deploys page to approve it
|
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Splits Release Drafter into two event-scoped jobs:
update_release_draftruns only for pushes tomain, withcontents: writeand read-only pull-request access.label_pull_requestruns only for pull-request events and uses the separaterelease-drafter/autolabeleraction without release-content write permission.The repository was already pinned to Release Drafter v7, where autolabeling is provided by the dedicated action. This also removes the obsolete
disable-autolabelerinput from the drafter step.Why is it important?
Pull-request runs no longer attempt release-draft writes with a fork-restricted token, while push runs retain the existing draft-release behavior. Labeling remains separate and does not grant
contents: write.Related issues
Fixes #4143.
Validation and gaps
action.ymlandautolabeler/action.ymlinputs and permissions with the upstream documentation.git diff --checkpassed; the complete diff was reviewed.pull_requestruns and repository label configuration still need CI/maintainer verification.AI disclosure
AI assistance was used to inspect the issue/action metadata and prepare this change. The diff and validation were reviewed locally.
Signed-off-by: NginxL 8777777+NginxL@users.noreply.github.com