Skip to content

Commit 2aa3aea

Browse files
snomiaoCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <[email protected]>
1 parent a0b9bf5 commit 2aa3aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run/gh-bugcop/gh-bugcop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ async function processIssue(issue: GH["issue"]) {
237237
}
238238

239239
const addLabels = [BUGCOP_RESPONSE_RECEIVED].filter((e) => !issueLabels.includes(e)); // add response received label if not already added
240-
const removeLabels = [latestLabeledEvent.label.name].filter((e) => issueLabels.includes(e)); // remove
240+
const removeLabels = [latestLabeledEvent.label.name].filter((e) => issueLabels.includes(e)); // remove the triggering label if it exists on the issue
241241

242242
if (isResponseReceived) {
243243
console.log(chalk.bgBlue("Adding:"), addLabels);

0 commit comments

Comments
 (0)