forked from mirrors/nixpkgs
574c4a7468
opened, synchronize, reopened are the defaults for `pull_request_target`, `edited` will trigger the label action if the PRs base branch is changed.
16 lines
311 B
YAML
16 lines
311 B
YAML
name: "Label PR"
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [edited, opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
labels:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'NixOS'
|
|
steps:
|
|
- uses: actions/labeler@v3
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
sync-labels: true
|