File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 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"];
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
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]);
You can’t perform that action at this time.
0 commit comments