Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / .github / workflows / labels.yml
blob35f5f24ce309c11255be401ce655ea247d3f5d54
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     runs-on: ubuntu-latest
19     if: "github.repository_owner == 'NixOS' && !contains(github.event.pull_request.title, '[skip treewide]')"
20     steps:
21     - uses: actions/labeler@v4
22       with:
23         repo-token: ${{ secrets.GITHUB_TOKEN }}
24         sync-labels: true