|
4 | 4 | types: [closed, opened, synchronize] |
5 | 5 | jobs: |
6 | 6 | # labeler must run before gbp because gbp calculates itself based on labels |
7 | | - labeler: |
8 | | - runs-on: ubuntu-24.04 |
9 | | - if: github.event.action == 'opened' || github.event.action == 'synchronize' |
10 | | - permissions: |
11 | | - pull-requests: write # to apply labels |
12 | | - issues: write # to apply labels |
13 | | - steps: |
14 | | - - name: Checkout |
15 | | - uses: actions/checkout@v6 |
16 | | - - name: Run Auto Labeler |
17 | | - uses: actions/github-script@v7 |
18 | | - with: |
19 | | - script: | |
20 | | - const { get_updated_label_set } = await import('${{ github.workspace }}/tools/pull_request_hooks/autoLabel.js'); |
21 | | - const new_labels = await get_updated_label_set({ github, context }); |
22 | | - github.rest.issues.setLabels({ |
23 | | - issue_number: context.issue.number, |
24 | | - owner: context.repo.owner, |
25 | | - repo: context.repo.repo, |
26 | | - labels: new_labels, |
27 | | - }); |
28 | | - console.log(`Labels updated: ${new_labels}`); |
| 7 | + #labeler: |
| 8 | + # runs-on: ubuntu-24.04 |
| 9 | + # if: github.event.action == 'opened' || github.event.action == 'synchronize' |
| 10 | + # permissions: |
| 11 | + # pull-requests: write # to apply labels |
| 12 | + # issues: write # to apply labels |
| 13 | + # steps: |
| 14 | + # - name: Checkout |
| 15 | + # uses: actions/checkout@v6 |
| 16 | + # - name: Run Auto Labeler |
| 17 | + # uses: actions/github-script@v7 |
| 18 | + # with: |
| 19 | + # script: | |
| 20 | + # const { get_updated_label_set } = await import('${{ github.workspace }}/tools/pull_request_hooks/autoLabel.js'); |
| 21 | + # const new_labels = await get_updated_label_set({ github, context }); |
| 22 | + # github.rest.issues.setLabels({ |
| 23 | + # issue_number: context.issue.number, |
| 24 | + # owner: context.repo.owner, |
| 25 | + # repo: context.repo.repo, |
| 26 | + # labels: new_labels, |
| 27 | + # }); |
| 28 | + # console.log(`Labels updated: ${new_labels}`); - MASSMETA EDIT (у нас есть аналогичная функция) |
29 | 29 | gbp: |
30 | 30 | runs-on: ubuntu-24.04 |
31 | 31 | if: github.event.action == 'opened' || github.event.action == 'closed' |
|
0 commit comments