-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable automerge for pre commit hook updates (#102)
* ci: Allow the trove-classifiers package to automerge for minor version increments since it uses date versioning * ci: Enable auto-merge for pre-commit.ci autoupdate PRs * ci: Update workflow name
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
--- | ||
name: Auto approve Renovate PRs | ||
name: Auto approve Renovate/pre-commit.ci PRs | ||
on: | ||
pull_request_target: | ||
jobs: | ||
auto-approve: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
if: (github.actor == 'renovate[bot]' && startsWith(github.head_ref, 'renovate/automerge/')) | ||
|| (github.actor == 'pre-commit-ci[bot]' && startsWith(github.head_ref, 'pre-commit-ci-update-config')) | ||
steps: | ||
- uses: hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363 # v4.0.0 | ||
- name: Enable auto-merge for pre-commit.ci autoupdate PRs | ||
if: github.actor == 'pre-commit-ci[bot]' && startsWith(github.head_ref, 'pre-commit-ci-update-config') | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
run: gh pr merge --auto --merge "$PR_URL" |