From 927579ab2b108f2aa3f7fa162476e5599c2ef3a5 Mon Sep 17 00:00:00 2001 From: Manish Singh Bisht <114493480+manish-singh-bisht@users.noreply.github.com> Date: Mon, 15 Apr 2024 19:57:25 +0530 Subject: [PATCH] Update the error message when /reject made in issue --- lib/github/hooks/issue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/github/hooks/issue.ts b/lib/github/hooks/issue.ts index b58fb2a..8d28e73 100644 --- a/lib/github/hooks/issue.ts +++ b/lib/github/hooks/issue.ts @@ -403,7 +403,7 @@ export const onRejectCommented = async (webhooks: Webhooks) => { owner, repo, issue_number: prNumber, - body: `${REJECT_IDENTIFIER} works on a PR.`, + body: `The command ${REJECT_IDENTIFIER} only works in PRs, not on issues. Please use it in a Pull Request.`, }); return; }