Skip to content

Commit 84304f1

Browse files
authored
fix github auto assign on comment workflow (#27)
Signed-off-by: Shingo OKAWA <[email protected]>
1 parent 99998b4 commit 84304f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/auto-assign-on-comment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
uses: actions/github-script@v7
1919
with:
2020
script: |
21-
const body = context.payload.comment.body.toLowerCase();
21+
const body = context.payload.comment.body.trim();
2222
const author = context.payload.comment.user.login;
2323
const issue = context.payload.issue;
2424
25-
// Check if comment includes 'take'
26-
if (!body.includes('take')) {
27-
console.log("Comment does not include 'take'; skipping.");
25+
// Check if comment is 'take'
26+
if (body !== 'take') {
27+
console.log("Comment is not exactly 'take'; skipping.");
2828
return;
2929
}
3030

0 commit comments

Comments
 (0)