Skip to content

Commit 48824d8

Browse files
committed
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
1 parent 6831a79 commit 48824d8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/release-drafter.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/workflows/labeler.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
name: PR Autolabeler
1+
name: PR Auto-labeler
22

33
on:
4-
# pull_request event is required for autolabeler
4+
# pull_request event is required for auto-labeler
55
pull_request:
66
types: [opened, reopened, synchronize]
77

8+
permissions: {}
9+
810
jobs:
911
draft-release:
10-
uses: cpp-linter/.github/.github/workflows/release-drafter.yml@main
12+
permissions:
13+
pull-requests: write
14+
contents: read
15+
uses: cpp-linter/.github/.github/workflows/pr-labeler.yml@main

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ jobs:
6262
with:
6363
commitish: 'main'
6464
header: ${{ env.RELEASE_BODY }}
65+
config-name: github:cpp-linter/.github:/.github/release-drafter.yml
6566
env:
6667
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)