fix(deps): bump phpunit/phpunit from 11.4.2 to 11.4.3 #30
Workflow file for this run
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: Comment on New Issue or Pull Request | |
on: | |
pull_request: | |
types: [opened] | |
jobs: | |
comment: | |
name: Comment on Pull Request | |
runs-on: ubuntu-latest | |
if: github.actor != 'RedstonePfalz' || github.actor != 'dependabot[bot]' | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Comment on Issue or Pull Request | |
run: | | |
COMMENT_BODY="Hello,\nThank you for creating a pull request.\nYour pull request is now being automatically checked in the background. Once these checks have been completed, your commits will be checked manually.\nPlease check the following things again first:\n- Do the commits follow the [ConventionalCommits standard](https://conventionalcommits.org/)?\n- Are all changes precisely described?\n- Have you tested your changes sufficiently?\n- Have you documented new functions, etc. according to the PHPDoc standard?" | |
curl -X POST \ | |
-H "Authorization: token ${{ secrets.BOT_TOKEN }}" \ | |
-H "Content-Type: application/json" \ | |
-d "{\"body\": \"$COMMENT_BODY\"}" \ | |
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments" | |
- name: Add 'do-not-merge' label | |
uses: actions/github-script@v4 | |
with: | |
github-token: ${{ secrets.BOT_TOKEN }} | |
script: | | |
await github.issues.addLabels({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
labels: ['do not merge', 'review-required'] | |
}); |