[Enhancement]: Keep Release Drafter writes on main pushes

Open Beginner friendly
#4,143 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, go
Domain
ci-cd

Research direction

Start with .github/workflows/release-drafter.yml and the pinned Release Drafter v6.1.0 action configuration. Separate the push-to-main draft path from the pull request labeling path, using disable-releaser: true for labeling and keeping the fork token restriction. Done when main pushes still create drafts and PR runs only label without attempting release writes.

Written by the indexing model from the issue text.

Description

Proposal

Could the release-draft job run only on pushes to main, with PR labeling handled separately?

The current workflow says the pull_request trigger is needed for autolabeling, but it invokes the same Release Drafter action for PRs and pushes. In PR #4124's Release Drafter job, the job received contents: read and GitHub denied the draft-creation request with HTTP 403. The overall job still showed success.

A push-only draft job could retain contents: write. A separate PR labeling job could omit that permission and skip release operations. The pinned Release Drafter v6.1.0 action supports disable-releaser: true for the labeling path.

That would keep the current draft behavior on main, avoid release-write attempts during PR runs, and preserve GitHub's fork token restriction.

Dominant language
Go
Stars
5k
Forks
660
Avg merge
3d 11h
Merged PRs (30d)
48

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from testcontainers/testcontainers-go

All issues in testcontainers/testcontainers-go

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.