Skip to content

Commit 31da2d7

Browse files
authored
Merge pull request #197 from microsoft/feat/label-taxonomy
Add declarative label taxonomy
2 parents 4eaf69e + 014299a commit 31da2d7

File tree

3 files changed

+153
-10
lines changed

3 files changed

+153
-10
lines changed

.github/labels.yml

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# =============================================================================
2+
# Label Taxonomy for microsoft/security-devops-action
3+
# =============================================================================
4+
# Synced by .github/workflows/sync-labels.yml using micnncim/action-label-syncer
5+
#
6+
# Naming convention: <group>:<value> (lowercase, kebab-case)
7+
# Color convention: consistent within each group for at-a-glance filtering
8+
#
9+
# To propose changes, edit this file and open a PR.
10+
# =============================================================================
11+
12+
# ---------------------------------------------------------------------------
13+
# Type — what kind of issue / PR
14+
# ---------------------------------------------------------------------------
15+
- name: "type:bug"
16+
description: "Something isn't working"
17+
color: "d73a4a"
18+
19+
- name: "type:feature"
20+
description: "New feature or request"
21+
color: "a2eeef"
22+
23+
- name: "type:docs"
24+
description: "Improvements or additions to documentation"
25+
color: "0075ca"
26+
27+
- name: "type:question"
28+
description: "General question or support request"
29+
color: "d876e3"
30+
31+
- name: "type:security"
32+
description: "Security vulnerability or hardening"
33+
color: "e11d48"
34+
35+
- name: "type:maintenance"
36+
description: "Dependency updates, refactoring, chores"
37+
color: "bfd4f2"
38+
39+
# ---------------------------------------------------------------------------
40+
# Priority — how urgent
41+
# ---------------------------------------------------------------------------
42+
- name: "priority:critical"
43+
description: "Blocking issue, needs immediate fix"
44+
color: "b60205"
45+
46+
- name: "priority:high"
47+
description: "Important, should be addressed soon"
48+
color: "d93f0b"
49+
50+
- name: "priority:medium"
51+
description: "Normal priority"
52+
color: "fbca04"
53+
54+
- name: "priority:low"
55+
description: "Nice to have, address when convenient"
56+
color: "0e8a16"
57+
58+
# ---------------------------------------------------------------------------
59+
# Status — where in the workflow
60+
# ---------------------------------------------------------------------------
61+
- name: "status:triage"
62+
description: "Needs initial triage and classification"
63+
color: "f9d0c4"
64+
65+
- name: "status:waiting-on-author"
66+
description: "Waiting for more information from author"
67+
color: "f9d0c4"
68+
69+
- name: "status:repro-needed"
70+
description: "Bug needs reproduction steps"
71+
color: "f9d0c4"
72+
73+
- name: "status:team-review"
74+
description: "Queued for team review and decision"
75+
color: "d93f0b"
76+
77+
- name: "status:approved"
78+
description: "Accepted, ready to be worked on"
79+
color: "0e8a16"
80+
81+
- name: "status:blocked"
82+
description: "Blocked by external dependency or decision"
83+
color: "b60205"
84+
85+
- name: "status:inactive"
86+
description: "No activity for an extended period"
87+
color: "cfd3d7"
88+
89+
# ---------------------------------------------------------------------------
90+
# Area — what component
91+
# ---------------------------------------------------------------------------
92+
- name: "area:action"
93+
description: "GitHub Action definition, inputs, and outputs"
94+
color: "c5def5"
95+
96+
- name: "area:msdo-cli"
97+
description: "MSDO CLI integration and execution"
98+
color: "c5def5"
99+
100+
- name: "area:container-mapping"
101+
description: "Container image mapping functionality"
102+
color: "c5def5"
103+
104+
- name: "area:ci"
105+
description: "CI/CD pipeline and workflows"
106+
color: "c5def5"
107+
108+
# ---------------------------------------------------------------------------
109+
# Resolution — how it was closed
110+
# ---------------------------------------------------------------------------
111+
- name: "resolution:duplicate"
112+
description: "This issue or pull request already exists"
113+
color: "cfd3d7"
114+
115+
- name: "resolution:wontfix"
116+
description: "This will not be worked on"
117+
color: "eeeeee"
118+
119+
- name: "resolution:invalid"
120+
description: "Not a valid issue"
121+
color: "e4e669"
122+
123+
- name: "resolution:by-design"
124+
description: "Working as intended"
125+
color: "cfd3d7"
126+
127+
# ---------------------------------------------------------------------------
128+
# Community
129+
# ---------------------------------------------------------------------------
130+
- name: "good first issue"
131+
description: "Good for newcomers"
132+
color: "7057ff"
133+
134+
- name: "help wanted"
135+
description: "Extra attention is needed"
136+
color: "008672"
137+
138+
# ---------------------------------------------------------------------------
139+
# Special
140+
# ---------------------------------------------------------------------------
141+
- name: "agentic-workflows"
142+
description: "Related to GitHub Agentic Workflows"
143+
color: "1d76db"

.github/workflows/msdo-issue-assistant.lock.yml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/msdo-issue-assistant.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ safe-outputs:
3535
add-comment:
3636
max: 4
3737
add-labels:
38-
allowed: [bug, feature, enhancement, documentation, question, needs-info, needs-maintainer]
38+
allowed: ["type:bug", "type:feature", "type:docs", "type:question", "type:security", "type:maintenance", "status:triage", "status:waiting-on-author", "status:repro-needed", "status:team-review"]
3939

4040
---
4141

@@ -77,20 +77,20 @@ When a new issue is opened or a user comments:
7777
**If the wiki answers the question:**
7878
- Provide the solution directly from wiki knowledge
7979
- Include relevant wiki links
80-
- Add appropriate label (bug, feature, documentation, question)
80+
- Add appropriate label (`type:bug`, `type:feature`, `type:docs`, `type:question`)
8181

8282
**If more information is needed:**
8383
- Ask for specific details (max 3-4 items):
8484
- MSDO version
8585
- Operating system and runner type
8686
- Error message or logs
8787
- Workflow YAML configuration
88-
- Add the `needs-info` label
88+
- Add the `status:waiting-on-author` label
8989

9090
**If the issue requires maintainer attention:**
9191
- Summarize what you understand about the issue
9292
- Explain why a maintainer needs to look at it
93-
- Add the `needs-maintainer` label
93+
- Add the `status:team-review` label
9494

9595
### Step 3: Format Your Response
9696

@@ -113,7 +113,7 @@ Keep responses:
113113
- The issue is closed
114114
- The commenter is not the issue author (unless it's a new issue)
115115
- You've already responded twice and there is no new technical information in the latest user message
116-
- The issue has a `needs-maintainer` label (a maintainer is handling it)
116+
- The issue has a `status:team-review` label (a maintainer is handling it)
117117
5. **Be honest** - if you don't know something, say so and suggest checking the wiki or waiting for a maintainer
118118

119119
## Response Examples
@@ -129,7 +129,7 @@ Keep responses:
129129
**Off-topic issue:** "How do I set up GitHub Actions for deploying to AWS?"
130130
→ Do not respond. This is unrelated to MSDO.
131131

132-
**Issue labeled `needs-maintainer`:** Any issue with this label.
132+
**Issue labeled `status:team-review`:** Any issue with this label.
133133
→ Do not respond. A maintainer is already handling it.
134134

135135
**Repeated comments with no new info:** User says "Any update?" or "bump" after you already responded.

0 commit comments

Comments
 (0)