Repository navigation
Conversation
Release-drafter v7 removed the disable-releaser and disable-autolabeler inputs, replacing them with dedicated sub-actions. This commit: - Splits the combined workflow into two files: release-drafter.yaml (push-only, drafter) and autolabeler.yaml (PR events, autolabeler) - Updates to release-drafter v7.1.0 - Updates harden-runner to v2.16.0 - Removes the per-repo release-drafter config (falls back to org-level .github repo config) - Removes deprecated env GITHUB_TOKEN usage - Removes debug concurrency group step Co-authored-by: Claude <claude@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
There was a problem hiding this comment.
Pull request overview
This PR migrates the repository’s Release Drafter setup from the v6 combined workflow to the v7 split architecture, separating release drafting (push-only) from PR autolabeling (PR/PR-target), and updating pinned action versions accordingly.
Changes:
- Split the existing Release Drafter workflow into a push-only release drafting workflow and a separate PR-triggered autolabeler workflow (including fork support via
pull_request_target+ gating). - Update pinned action revisions for
release-drafter(v7.1.0) andstep-security/harden-runner(v2.16.0). - Remove the repo-local
.github/release-drafter.ymlconfiguration file.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/release-drafter.yaml | Converts to push-only draft release workflow and updates action pins. |
| .github/workflows/autolabeler.yaml | Adds dedicated autolabeler workflow for PR events (incl. fork handling). |
| .github/release-drafter.yml | Removes repository-specific Release Drafter configuration. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ModeSevenIndustrialSolutions
left a comment
There was a problem hiding this comment.
Addressing Copilot feedback: both threads are about the removed per-repo config — release-drafter v7 has implicit org-level .github repo fallback, which is the documented and intended approach for this migration.
tykeal
left a comment
There was a problem hiding this comment.
Auto-approved by dependamerge
Summary
Migrates release-drafter from v6 (combined workflow) to v7 (split architecture).
Release-drafter v7 removed the
disable-releaseranddisable-autolabelerinputs, replacing them with dedicated sub-actions. These inputs were left as dead code inaction.yml— accepted without warning but never acted upon (upstream bug report).Changes
release-drafter.yamlworkflow into two:release-drafter.yaml— push-only trigger, uses root drafter action,contents: writeautolabeler.yaml— PR trigger (bothpull_requestandpull_request_targetfor fork support), uses dedicated/autolabelersub-action,pull-requests: write+contents: read.github/release-drafter.ymlconfig (falls back to the org-level.githubrepo config)env: GITHUB_TOKENusage (v7 defaults to${{ github.token }}viatokeninput)Context
This is part of an org-wide migration. The same change is being applied to all lfreleng-actions repositories that have release-drafter configured. The canonical fix was first applied in lfreleng-actions/github2gerrit-action#172.
Security
The
pull_request_targettrigger in the autolabeler workflow is safe because: