From 5934d182544b266f9474c70879d6284b6716e683 Mon Sep 17 00:00:00 2001 From: mxcl Date: Mon, 10 Jan 2022 15:56:31 -0500 Subject: [PATCH] Add the ferret label on fetched issues --- src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.ts b/src/index.ts index 497ffe6..39e16e2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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") }