BCR PR reviewer: trim for skip_check (#2173)
Sometimes people post a comment like `@bazel-io skip_check
unstable_url\n` (with an actual newline at the end). This PR makes that
work too.
diff --git a/actions/bcr-pr-reviewer/index.js b/actions/bcr-pr-reviewer/index.js
index e84ef5c..981cc31 100644
--- a/actions/bcr-pr-reviewer/index.js
+++ b/actions/bcr-pr-reviewer/index.js
@@ -457,7 +457,7 @@
const check = payload.comment.body.slice(SKIP_CHECK_TRIGGER.length);
const owner = payload.repository.owner.login;
const repo = payload.repository.name;
- if (check == "unstable_url") {
+ if (check.trim() == "unstable_url") {
await octokit.rest.issues.addLabels({
owner,
repo,