ci: original labeler

This commit is contained in:
Henry Schreiner 2020-10-12 22:35:23 -04:00
parent 1914b7d3a7
commit 2f746eeeb4
3 changed files with 10 additions and 8 deletions

6
.github/labeler.yml vendored
View File

@ -1,9 +1,3 @@
needs changelog:
- all:
- '!docs/changelog.rst'
any:
- '(include|pybind11|tools)/**/*'
docs:
- any:
- 'docs/**/*.rst'

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

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

View File

@ -3,11 +3,16 @@ on:
pull_request_target:
jobs:
label-merged:
name: Changelog needed
label:
name: Labeler
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@main
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true
- uses: actions/labeler@main
if: "!(github.event.action == 'closed' && github.event.pull_request.merged == false)"
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
configuration-path: .github/labeler_merged.yml