| name: PR Reminder Bot | |
| on: | |
| pull_request_target: | |
| types: | |
| - opened | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| jobs: | |
| remind: | |
| runs-on: ubuntu-latest | |
| if: github.repository_owner == 'zhijie-group' | |
| steps: | |
| - name: Remind | |
| uses: actions/github-script@v8 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| script: | | |
| github.rest.issues.createComment({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| body: '๐ Hi! Thank you for contributing to the **Diffulex** project.\n\n' + | |
| 'Please remember to run `pre-commit run --all-files` in the root directory of the project ' + | |
| 'to ensure your changes are properly linted and formatted. ' + | |
| 'This will help ensure your contribution passes the format check.\n\n' + | |
| 'We appreciate you taking this step! ' + | |
| 'Our team will review your contribution, and we look forward to your awesome work! ๐' | |
| }) | |