fix: remove inprogress from auto-closed issues
This commit is contained in:
3
.github/workflows/issue-triage-labels.yml
vendored
3
.github/workflows/issue-triage-labels.yml
vendored
@@ -18,6 +18,7 @@ jobs:
|
|||||||
const NO_ACTION_LABEL = 'no-action';
|
const NO_ACTION_LABEL = 'no-action';
|
||||||
const LAST_READ_LABEL = 'last-read';
|
const LAST_READ_LABEL = 'last-read';
|
||||||
const TO_DISCUSS_LABEL = 'to-discuss';
|
const TO_DISCUSS_LABEL = 'to-discuss';
|
||||||
|
const INPROGRESS_LABEL = 'inprogress';
|
||||||
|
|
||||||
function issueHasLabel(issue, labelName) {
|
function issueHasLabel(issue, labelName) {
|
||||||
return (issue.labels ?? []).some((label) => label.name === labelName);
|
return (issue.labels ?? []).some((label) => label.name === labelName);
|
||||||
@@ -124,6 +125,8 @@ jobs:
|
|||||||
});
|
});
|
||||||
console.log(`Closed #${issue.number} as not planned`);
|
console.log(`Closed #${issue.number} as not planned`);
|
||||||
|
|
||||||
|
await removeLabelIfPresent(issue.number, issue, INPROGRESS_LABEL);
|
||||||
|
|
||||||
await github.rest.issues.removeLabel({
|
await github.rest.issues.removeLabel({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|||||||
Reference in New Issue
Block a user