Skip to content

Whitespace from different user #8

Whitespace from different user

Whitespace from different user #8

Workflow file for this run

name: Hello World PR Comment
on:
issue_comment:
types: [created]
jobs:
hello_world:
runs-on: ubuntu-latest
steps:
- name: Check PR comment
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const comment = context.payload.comment.body;
const isPR = context.payload.issue.pull_request != null;
if (isPR && comment.includes('/hello')) {
//do things
}