tideways-cli: init at 1.2.2 (#351192)
[NixPkgs.git] / .github / workflows / labels.yml
blob724164bebdfc96c2a9f2af114c9c41ce939e2133
1 name: "Label PR"
3 on:
4   pull_request_target:
5     types: [edited, opened, synchronize, reopened]
7 # WARNING:
8 # When extending this action, be aware that $GITHUB_TOKEN allows some write
9 # access to the GitHub API. This means that it should not evaluate user input in
10 # a way that allows code injection.
12 permissions:
13   contents: read
14   pull-requests: write
16 jobs:
17   labels:
18     name: label-pr
19     runs-on: ubuntu-latest
20     if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
21     steps:
22     - uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
23       with:
24         repo-token: ${{ secrets.GITHUB_TOKEN }}
25         sync-labels: true