Skip to content

ci: upgrade release-drafter to v7.1.1 with separate autolabeler#598

Merged
tykeal merged 1 commit intoFutureTense:mainfrom
tykeal:release-drafter-v7
Apr 15, 2026
Merged

ci: upgrade release-drafter to v7.1.1 with separate autolabeler#598
tykeal merged 1 commit intoFutureTense:mainfrom
tykeal:release-drafter-v7

Conversation

@tykeal
Copy link
Copy Markdown
Collaborator

@tykeal tykeal commented Apr 15, 2026

Summary

Upgrade release-drafter from v6.2.0 to v7.1.1 and split the combined workflow into two dedicated workflows following the v7+ pattern:

Changes

  • .github/workflows/release-drafter.yaml — Simplified to only run on push to main. Upgraded to v7.1.1 and harden-runner v2.16.1. Removed PR triggers and debug step.
  • .github/workflows/autolabeler.yaml (new) — Dedicated PR autolabeling using the v7 /autolabeler subcommand. Runs on pull_request and pull_request_target with minimal permissions.

Why

Release-drafter v7+ separates the autolabeler into its own action path (release-drafter/release-drafter/autolabeler), enabling:

  • Cleaner separation of concerns (drafting vs labeling)
  • Tighter permissions (release-drafter only needs contents: write, autolabeler only needs pull-requests: write)
  • Simpler concurrency groups
  • Alignment with the pattern used in rental-control

Split the combined release-drafter workflow into two:
- release-drafter.yaml: drafts releases on push to main
- autolabeler.yaml: labels PRs using the v7 /autolabeler subcommand

Also upgrades harden-runner from v2.15.0 to v2.16.1.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Andrew Grimberg <tykeal@bardicgrove.org>
@tykeal tykeal requested a review from Copilot April 15, 2026 11:32
@github-actions github-actions Bot added the CI CI and testing updates label Apr 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the repository’s Release Drafter automation to v7.1.1 and adopts the v7+ pattern of splitting release drafting and PR autolabeling into separate workflows, enabling tighter permissions and simpler triggers.

Changes:

  • Upgrade release-drafter action to v7.1.1 (and harden-runner to v2.16.1).
  • Simplify Release Drafter workflow to run only on push to main.
  • Add a dedicated Autolabeler workflow using the v7 /autolabeler action path with scoped permissions and fork-safe triggering.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/release-drafter.yaml Upgrades Release Drafter to v7.1.1, scopes triggers to push only, and simplifies concurrency/permissions.
.github/workflows/autolabeler.yaml Introduces a separate autolabeling workflow using the v7 autolabeler action path with minimal permissions and fork-aware execution.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tykeal tykeal merged commit 2f75fd6 into FutureTense:main Apr 15, 2026
8 checks passed
@tykeal tykeal deleted the release-drafter-v7 branch April 15, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI CI and testing updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants