Skip to content

Module 4 Lab

Module 4 Lab #29

Workflow file for this run

name: 05-1. GitHub Script - Thank you
on:
issues:
types: [opened, edited, reopened, labeled]
# Limit the permissions of the GITHUB_TOKEN
permissions:
contents: read
issues: write
jobs:
comment:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Thank you! We appreciate your contribution to this project.'
})