Skip to content

Add write permission for Action #8

Add write permission for Action

Add write permission for Action #8

Workflow file for this run

on:
# Trigger the workflow on push or pull request
pull_request:
# branches:
# - master
# - develop
jobs:
comment:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'This is an auto-generated reply.\n\nYour pull request has been received.\n\nPlease note: during the holidays, processing of pull requests will be delayed. Normal service is expected to resume on 2024-01-08.'
})