Skip to content

Commit 5542a46

Browse files
committed
maint: add workflow to remove state labels from closed issues
Signed-off-by: Yury V. Zaytsev <[email protected]>
1 parent 1543739 commit 5542a46

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Process closed issues
2+
3+
on:
4+
issues:
5+
types: [ closed ]
6+
workflow_dispatch:
7+
inputs:
8+
issue_number:
9+
description: Issue number
10+
required: true
11+
type: number
12+
13+
jobs:
14+
remove-labels-on-close:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 5
17+
18+
if: ${{ ! github.event.issue.pull_request }}
19+
20+
permissions:
21+
issues: write
22+
23+
steps:
24+
- run: |
25+
gh issue edit ${{ inputs.issue_number != '' && inputs.issue_number || github.event.issue.number }} \
26+
--remove-label "state: in review,state: approved"
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+
GH_REPO: ${{ github.repository }}

0 commit comments

Comments
 (0)