Skip to content

Commit 4e92e91

Browse files
committed
repo maintenance
1 parent 92ad1a7 commit 4e92e91

File tree

5 files changed

+285
-469
lines changed

5 files changed

+285
-469
lines changed

.github/workflows/label-commenter.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,20 @@ jobs:
1414
with:
1515
github_token: ${{ secrets.GITHUB_TOKEN }}
1616
config_file: .github/label-commenter-config.yml
17+
- name: Remove awaiting-final-review label when verified
18+
if: github.event.label.name == 'verified'
19+
uses: actions/github-script@v8
20+
with:
21+
github-token: ${{ secrets.GITHUB_TOKEN }}
22+
script: |
23+
try {
24+
await github.rest.issues.removeLabel({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
issue_number: context.issue.number,
28+
name: 'awaiting-final-review'
29+
});
30+
console.log('Removed awaiting-final-review label');
31+
} catch (error) {
32+
console.log('Label awaiting-final-review not found or already removed');
33+
}

.github/workflows/plugin-checks-request.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,23 @@ jobs:
4747
comment_id: ${{ github.event.comment.id }},
4848
content: 'eyes'
4949
});
50+
- name: Remove awaiting-final-review label
51+
if: steps.should-run.outputs.run == 'true' && github.event_name == 'issue_comment'
52+
uses: actions/github-script@v8
53+
with:
54+
github-token: ${{ secrets.GITHUB_TOKEN }}
55+
script: |
56+
try {
57+
await github.rest.issues.removeLabel({
58+
owner: context.repo.owner,
59+
repo: context.repo.repo,
60+
issue_number: context.issue.number,
61+
name: 'awaiting-final-review'
62+
});
63+
console.log('Removed awaiting-final-review label');
64+
} catch (error) {
65+
console.log('Label awaiting-final-review not found or already removed');
66+
}
5067
- name: Install Dependencies & Build
5168
if: steps.should-run.outputs.run == 'true'
5269
run: npm install && npm run plugin-checks:build

0 commit comments

Comments
 (0)