[Snyk] Security upgrade aiohttp from 3.8.6 to 3.9.4 #30
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 Pull Request | |
on: | |
pull_request: | |
types: | |
- opened | |
jobs: | |
comment: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Comment on Pull Request | |
uses: actions/github-script@v5 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const comment = "Thank you for creating the pull request! We will review it shortly."; | |
// Use github object directly, it should have the createComment method | |
github.issues.createComment({ | |
issue_number: context.payload.pull_request.number, // Changed pull_number to issue_number | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: comment | |
}); |