From 48824d8b836eae940ec290cefa7ba91ad3ec1da7 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Tue, 17 Mar 2026 03:36:07 -0700 Subject: [PATCH] chore(dev): update release-drafter usage - [x] switch to cpp-linter org's release-drafter config - [x] update permissions for jobs that invoke release-drafter workflows (reusable and local) - [x] switch labeler workflow to use separate reusable workflow refs: - cpp-linter/.github#71 - cpp-linter/.github#74 --- .github/release-drafter.yml | 2 -- .github/workflows/labeler.yml | 11 ++++++++--- .github/workflows/release-drafter.yml | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) delete mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml deleted file mode 100644 index 0dcd5b3..0000000 --- a/.github/release-drafter.yml +++ /dev/null @@ -1,2 +0,0 @@ -# Configuration for Release Drafter: https://github.com/release-drafter/release-drafter -_extends: .github:release-drafter.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 7755837..aafd48f 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,10 +1,15 @@ -name: PR Autolabeler +name: PR Auto-labeler on: - # pull_request event is required for autolabeler + # pull_request event is required for auto-labeler pull_request: types: [opened, reopened, synchronize] +permissions: {} + jobs: draft-release: - uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main + permissions: + pull-requests: write + contents: read + uses: cpp-linter/.github/.github/workflows/pr-labeler.yml@main diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 51a50a7..ecca7a8 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -62,5 +62,6 @@ jobs: with: commitish: 'main' header: ${{ env.RELEASE_BODY }} + config-name: github:cpp-linter/.github:/.github/release-drafter.yml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}