Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed Aug 28, 2023
1 parent 41151b7 commit 6846a0b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ux-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,20 @@ jobs:
with:
script: |
const comment = context.payload.comment.body;
const prNumber = context.payload.issue.number;
console.log(comment);
console.log(prNumber);
if (comment.includes('/ux-checklist')) {
console.log('UX Checklist command found');
const newComment = `## UX Checklist\n- [ ] Item 1\n- [ ] Item 2\n- [ ] Item 3`;
github.issues.createComment({
issue_number: context.issue.number,
const octokit = github.getOctokit(token);
await octokit.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: prNumber,
body: newComment
});
}

0 comments on commit 6846a0b

Please sign in to comment.