Skip to content

ci: separate release drafting from pr labeling - #4156

Draft
NginxL wants to merge 1 commit into
testcontainers:mainfrom
NginxL:ci/4143-release-drafter-push-only
Draft

NginxL wants to merge 1 commit into
testcontainers:mainfrom
NginxL:ci/4143-release-drafter-push-only

Conversation

@NginxL

@NginxL NginxL commented Dec 5, 2026

Copy link
Copy Markdown

What does this PR do?

Splits Release Drafter into two event-scoped jobs:

  • update_release_draft runs only for pushes to main, with contents: write and read-only pull-request access.
  • label_pull_request runs only for pull-request events and uses the separate release-drafter/autolabeler action 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-autolabeler input 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

  • Parsed the workflow with Ruby YAML and verified both jobs are present.
  • Compared the pinned v7.11.0 action.yml and autolabeler/action.yml inputs and permissions with the upstream documentation.
  • git diff --check passed; the complete diff was reviewed.
  • No live Actions run was exercised from this branch. Workflow behavior in pull_request runs 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

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>
@netlify

netlify Bot commented Dec 5, 2026

Copy link
Copy Markdown

👷 Deploy request for testcontainers-go pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 72c0318

@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

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.

[Enhancement]: Keep Release Drafter writes on main pushes

1 participant