Skip to content

Commit

Permalink
File sync from s4u/.github - disable auto approve
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed Feb 23, 2022
1 parent 9dc005b commit 1156fa3
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ jobs:
with:
github-token: "${{ secrets.TECH_TOKEN }}"

- name: Enable auto-merge for Dependabot PRs
if: >
github.actor == 'dependabot[bot]'
&& steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
# - name: Enable auto-merge for Dependabot PRs
# if: >
# github.actor == 'dependabot[bot]'
# && steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major'
# run: gh pr merge --auto --rebase "$PR_URL"
# env:
# PR_URL: ${{github.event.pull_request.html_url}}
# GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}

- name: Approve a PR
if: >
github.actor == 'dependabot[bot]'
|| github.actor == 'slawekjaranowski'
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}
# - name: Approve a PR
# if: >
# github.actor == 'dependabot[bot]'
# || github.actor == 'slawekjaranowski'
# run: gh pr review --approve "$PR_URL"
# env:
# PR_URL: ${{github.event.pull_request.html_url}}
# GITHUB_TOKEN: ${{ secrets.TECH_TOKEN }}

0 comments on commit 1156fa3

Please sign in to comment.