Add write permission for Action #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.' | |
}) | |