new beta version #5
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: Pytml Bot | |
| on: | |
| issues: | |
| types: [opened, reopened] | |
| pull_request: | |
| types: [opened, reopened] | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| mention: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Pytml Bot | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const { owner, repo } = context.repo; | |
| const issueNumber = context.issue.number; | |
| const opener = context.payload.sender.login; | |
| const body = "Hello @" + opener + ",\n" + | |
| "First off thanks for showing interest in our project.\n\n" + | |
| "Your request will be reviewed by @nodex-ar soon as he becomes free.\n\n" + | |
| "Once again thanks and just leave us a star and help us !"; | |
| await github.rest.issues.createComment({ | |
| owner, | |
| repo, | |
| issue_number: issueNumber, | |
| body, | |
| }); |