Skip to content

Commit

Permalink
File sync from s4u/.github - Shared auto approve
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed Feb 23, 2022
1 parent 1156fa3 commit c86db92
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,4 @@ on:

jobs:
auto-approve:
runs-on: ubuntu-latest
steps:

- name: Dependabot metadata
if: github.actor == 'dependabot[bot]'
id: dependabot-metadata
uses: dependabot/fetch-metadata@v1.2.1
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: 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 }}
uses: s4u/.github/.github/workflows/auto-approve.yml@master

0 comments on commit c86db92

Please sign in to comment.