Skip to content

Commit 7eafdb6

Browse files
larsonerbsipocz
andauthored
ENH: Use version for autofix-ci and add automerge (#74)
Co-authored-by: Brigitta Sipőcz <[email protected]>
1 parent 99c015d commit 7eafdb6

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- run: ncc build index.js
2525
env:
2626
NODE_OPTIONS: "--openssl-legacy-provider"
27-
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
27+
- uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1

.github/workflows/automerge.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Adapted from MNE-Python
2+
name: Bot auto-merge
3+
on: pull_request # yamllint disable-line rule:truthy
4+
5+
jobs:
6+
autobot:
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
runs-on: ubuntu-latest
11+
# Names can be found with gh api /repos/mne-tools/mne-python/pulls/12998 -q .user.login for example
12+
if: (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]' || github.event.pull_request.user.login == 'github-actions[bot]') && github.repository == 'scientific-python/circleci-artifacts-redirector-action'
13+
steps:
14+
- name: Enable auto-merge for bot PRs
15+
run: gh pr merge --auto --squash "$PR_URL"
16+
env:
17+
PR_URL: ${{github.event.pull_request.html_url}}
18+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)