Feat/tc2023e-42 add TestChatGPT page #17
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: Auto approve PR | |
on: | |
pull_request_target: | |
types: [opened, reopened, synchronize] | |
permissions: | |
pull-requests: write | |
jobs: | |
# Auto approve on dependabot PR at patch update | |
# by https://zenn.dev/nemuki/articles/dependabot-auto-merge | |
approve-updating-patch-version: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
steps: | |
- name: Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v1 | |
with: | |
github-token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Approve a PR | |
if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch' }} | |
run: gh pr review --approve "$PR_URL" | |
env: | |
PR_URL: ${{ github.event.pull_request.html_url }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |