Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (pull_request.labels.includes(PR_LABEL)) {
return
}
await octokit.issues.addLabels({
owner: REPO_OWNER,
repo: REPO_NAME,
issue_number: number,
labels: [PR_LABEL]
})
}
try {
run()
} catch (err) {
core.fail(err)
}