Test issue bot #3
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
name: Issue Bot | |
on: | |
issues: | |
types: [opened, reopened] | |
jobs: | |
pr_bot: | |
name: Issue Bot | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Comment on PR' | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
await github.rest.issues.createComment({ | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
issue_number: ${{ github.event.issue.number }}, | |
body: 'Thank you for opening an issue! We rely on the community to maintain Promitor. ([Learn more](https://github.com/tomkerkhove/promitor/issues/2425))\n\nIs this something you want to contribute?' | |
}); |