Skip to content

Test "Issue Comment Handler" action, "hello" in descirption #4

Test "Issue Comment Handler" action, "hello" in descirption

Test "Issue Comment Handler" action, "hello" in descirption #4

Workflow file for this run

name: 'Hello Comment Response'
on:
issue_comment:
types: [created]
jobs:
commentReply:
runs-on: ubuntu-latest
steps:
- name: Check for specific comment
uses: actions/github-script@v5
with:
script: |
const issueComment = context.payload.comment.body
if (issueComment === 'hello') {
github.rest.issues.createComment({
issue_number: context.payload.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'hola!'
})
}