1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-30 04:33:53 +00:00

ci: label PRs when merged

This commit is contained in:
Henry Schreiner 2020-10-28 11:34:45 -04:00
parent 97e5ebe490
commit d621be0565
2 changed files with 19 additions and 0 deletions

4
.github/labeler_merged.yml vendored Normal file
View File

@ -0,0 +1,4 @@
needs changelog:
- all: ['!CHANGELOG.md']
needs README:
- all: ['!README.md']

15
.github/workflows/pr_merged.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: PR merged
on:
pull_request_target:
types: [closed]
jobs:
label-merged:
name: Changelog needed
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- uses: actions/labeler@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler_merged.yml