Skip to content

Commit

Permalink
chore: cleanup labels
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonKhew96 authored Sep 17, 2024
1 parent e0de281 commit 036bd54
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ async function approve (token, owner, repo, issueNo, username, title) {
"If you complied with those requirements but your repo didn't appear in more than 10 minutes, please file an issue to let us know, thanks!\n\n" +
'Welcome `' + title + '`!'
)
await addLabel(token, owner, repo, issueNo, 'approved')
await setLabel(token, owner, repo, issueNo, 'approved') // clear other labels
await closeIssue(token, owner, repo, issueNo, true)
} else {
await leaveComment(token, owner, repo, issueNo,
Expand All @@ -27,7 +27,7 @@ async function approve (token, owner, repo, issueNo, username, title) {
"If you believe that's a fraudulent use, please contact a human by " +
'https://modules.lsposed.org/submission?type=appeal'
)
await addLabel(token, owner, repo, issueNo, 'conflict')
await setLabel(token, owner, repo, issueNo, 'conflict') // clear other labels
await closeIssue(token, owner, repo, issueNo)
}
}
Expand Down Expand Up @@ -99,8 +99,6 @@ async function run () {
return
}

await addLabel(token, owner, repo, issueNo, prefixTag)

// submission
if (prefixTag === 'submission') {
await approve(token, owner, repo, issueNo, username, title)
Expand Down

0 comments on commit 036bd54

Please sign in to comment.