Skip to content

Commit

Permalink
Add the ferret label on fetched issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 10, 2022
1 parent 5612534 commit 5934d18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ if (query) {
await updateComment(`ferret: active: ${query}`)
const found = await ferret(query, sniff())
await updateComment(found ?? `ferret: error: noop: ${query}`)
if (found) {
octokit.rest.issues.addLabels({
repo, owner, issue_number: ctx.issue.number, labels: ['ferret']
})
}
} else {
notice("No query found in comment")
}

0 comments on commit 5934d18

Please sign in to comment.