We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99998b4 commit 84304f1Copy full SHA for 84304f1
.github/workflows/auto-assign-on-comment.yml
@@ -18,13 +18,13 @@ jobs:
18
uses: actions/github-script@v7
19
with:
20
script: |
21
- const body = context.payload.comment.body.toLowerCase();
+ const body = context.payload.comment.body.trim();
22
const author = context.payload.comment.user.login;
23
const issue = context.payload.issue;
24
25
- // Check if comment includes 'take'
26
- if (!body.includes('take')) {
27
- console.log("Comment does not include 'take'; skipping.");
+ // Check if comment is 'take'
+ if (body !== 'take') {
+ console.log("Comment is not exactly 'take'; skipping.");
28
return;
29
}
30
0 commit comments