Skip to content

Commit 6322323

Browse files
committed
off labeler
1 parent efcd13b commit 6322323

1 file changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/gbp.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@ on:
44
types: [closed, opened, synchronize]
55
jobs:
66
# 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 (у нас есть аналогичная функция)
2929
gbp:
3030
runs-on: ubuntu-24.04
3131
if: github.event.action == 'opened' || github.event.action == 'closed'

0 commit comments

Comments
 (0)