ci: label PRs with changelog needed (#2546)

This commit is contained in:
Henry Schreiner 2020-10-02 16:56:19 -04:00 committed by GitHub
parent 9796fe98fc
commit 5f9b16672f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

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

@ -0,0 +1,2 @@
needs changelog:
- all: ['!docs/changelog.rst']

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

@ -0,0 +1,15 @@
name: PR merged
on:
pull_request:
- 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