full page reload #428
This file contains hidden or 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
name: Auto Comment on Issue Assignment | |
on: | |
issues: | |
types: [assigned] | |
permissions: | |
# Grant write permissions for issues to allow commenting on issues | |
issues: write | |
# Grant write permissions for contents to allow access to repository content | |
contents: write | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Comment on issue assignment | |
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: `👤 Issue assigned to @${context.payload.assignee.login}.` | |
}); |