Skip to content

Commit 328c5bb

Browse files
committed
chore(github): exclude documentation label from priority workflow
1 parent c3bb65a commit 328c5bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/priority.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
const TRIAGE = "triage";
2727
const QUESTION = "question";
2828
const RELEASE = "release";
29+
const DOCUMENTATION = "documentation";
2930
const PRIORITIES = ["p0-critical","p1-high","p2-medium","p3-low"];
3031
const WORD_TO_LABEL = { critical:"p0-critical", high:"p1-high", medium:"p2-medium", low:"p3-low" };
3132
const NUM_TO_LABEL = ["p0-critical","p1-high","p2-medium","p3-low"];
@@ -87,6 +88,7 @@ jobs:
8788
const hasTriage = labelsNow.includes(TRIAGE);
8889
const hasQuestion = labelsNow.includes(QUESTION);
8990
const hasRelease = labelsNow.includes(RELEASE);
91+
const hasDocumentation = labelsNow.includes(DOCUMENTATION);
9092
// Check if the issue was created by a bot
9193
const isBot = issue.user?.type === "Bot" || issue.user?.login?.endsWith("[bot]");
9294
// Check if the issue has upstream-related labels
@@ -96,4 +98,4 @@ jobs:
9698
if (hasPriority && hasTriage) await removeLabel(TRIAGE);
9799
98100
// no priority & no triage & not a question & not a release & not created by bot & no upstream labels → add triage (so your stale job still sees it)
99-
if (!hasPriority && !hasTriage && !hasQuestion && !hasRelease && !isBot && !hasUpstream && issue.state === "open") await addLabels([TRIAGE]);
101+
if (!hasPriority && !hasTriage && !hasQuestion && !hasRelease && !hasDocumentation && !isBot && !hasUpstream && issue.state === "open") await addLabels([TRIAGE]);

0 commit comments

Comments
 (0)