Unified · Split
| @@ -4,11 +4,6 @@ on: · 3 unmodified lines | |||
| 4 | issues: | 4 | issues: |
| 5 | types: [opened, edited] | 5 | types: [opened, edited] |
| 6 | 6 | ||
| 7 | permissions: | ||
| 8 | contents: read | ||
| 9 | pull-requests: write | ||
| 10 | issues: write | ||
| 11 | |||
| 12 | jobs: | 7 | jobs: |
| 13 | pr_labeler: | 8 | pr_labeler: |
| 14 | runs-on: utilities | 9 | runs-on: utilities |
| @@ -20,9 +15,11 @@ jobs: · 5 unmodified lines | |||
| 20 | if: ${{ forge.event_name == 'pull_request_target' }} | 15 | if: ${{ forge.event_name == 'pull_request_target' }} |
| 21 | with: | 16 | with: |
| 22 | configuration-path: .forgejo/labeler/labeler.yml | 17 | configuration-path: .forgejo/labeler/labeler.yml |
| 18 | repo-token: ${{ secrets.AUTOLABELER_TOKEN }} | ||
| 23 | - name: Label by title-match | 19 | - name: Label by title-match |
| 24 | uses: https://github.com/actions/github-script@v7 | 20 | uses: https://github.com/actions/github-script@v7 |
| 25 | with: | 21 | with: |
| 26 | script: | | 22 | script: | |
| 27 | const script = require('.forgejo/labeler/labeler.js') | 23 | const script = require('.forgejo/labeler/labeler.js') |
| 28 | await script({github, context}) | 24 | await script({github, context}) |
| 25 | github-token: ${{ secrets.AUTOLABELER_TOKEN }} | ||