Skip to content

Commit b00530b

Browse files
ci: automatically apply the done label to issues closed by PRs (#321)
1 parent ff4abb9 commit b00530b

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/labels.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,12 @@
9797
- name: "Resolution: Won't Fix"
9898
color: e6e6e6
9999
description: "A real bug or issue, but the issue is not impactful enough to spend time on."
100-
- name: "Resolution: Done/Fixed"
100+
- name: "Resolution: Fixed"
101101
color: c2e0c6
102-
description: "The bug/issue has been fixed/completed."
102+
description: "The issue has been fixed."
103+
- name: "Resolution: Added"
104+
color: c2e0c6
105+
description: "This has been added to the project."
103106

104107
# Bots
105108
- name: ":blue_heart:"

.github/workflows/done-label.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Apply Done Label
2+
3+
on:
4+
pull_request:
5+
types:
6+
- closed
7+
8+
jobs:
9+
run:
10+
name: "Update Labels"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: RebeccaStevens/issue-closed-labeler-action@latest
14+
with:
15+
rules: '[{"condition":"Type: Bug","add":"Resolution: Fixed"},{"condition":["some",["Type: Feature","Type: Enhancement"]],"add":"Resolution: Added"}]'

0 commit comments

Comments
 (0)