blob: 6b93864d3f3a9fbe73713c3aca1838595be4b562 [file] [log] [blame]
# This workflow applies labels to pull requests based on the
# paths that are modified in the pull request.
#
# Edit `.github/labeler.yml` and `.github/post_merge_labeler.yml`
# to configure labels.
#
# For more information, see: https://github.com/actions/labeler
name: Pull Request Labeler
on:
pull_request_target:
types: [opened, synchronize, reopened, closed]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@9794b1493b6f1fa7b006c5f8635a19c76c98be95
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
post_merge_label:
if: github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@9794b1493b6f1fa7b006c5f8635a19c76c98be95
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/post_merge_labeler.yml