Skip to content

Commit

Permalink
ci: update spike complete automation to try removing dev lifecycle la…
Browse files Browse the repository at this point in the history
…bel (#8136)

**Related Issue:** n/a

## Summary
Tries to remove the `2 - in development` lifecycle label, if present on
the issue when completing a spike to properly clear all the labels. cc:
@jcfranco

Refer to
#7692 (comment)
and
#7692 (comment)
for additional context.
  • Loading branch information
geospatialem authored Nov 7, 2023
1 parent 8a013d1 commit 76dca36
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/scripts/notifyWhenSpikeComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ module.exports = async ({ github, context }) => {
console.log("The '1 - assigned' label is not associated with the issue", err);
}

try {
await github.rest.issues.removeLabel({
...issueProps,
name: "2 - in development",
});
} catch (err) {
console.log("The '2 - in development' label is not associated with the issue", err);
}

// Add labels
await github.rest.issues.addLabels({
...issueProps,
Expand Down

0 comments on commit 76dca36

Please sign in to comment.