File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 44 directory : " /"
55 schedule :
66 interval : " weekly"
7+ groups :
8+ actions :
9+ patterns :
10+ - " *"
711 commit-message :
812 prefix : " [dependabot]"
Original file line number Diff line number Diff line change 11name : Bot auto-merge
2- on : pull_request # yamllint disable-line rule:truthy
2+ on : pull_request_target # yamllint disable-line rule:truthy
3+
4+ permissions :
5+ contents : write
6+ pull-requests : write
37
48jobs :
59 autobot :
6- permissions :
7- contents : write
8- pull-requests : write
910 runs-on : ubuntu-latest
10- # Names can be found with gh api /repos/mne-tools/mne-python/pulls/12998 -q .user.login for example
11- 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 == 'mne-tools/mne-bids'
11+ if : (github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'pre-commit-ci[bot]') && github.repository == 'mne-tools/mne-bids'
1212 steps :
1313 - name : Enable auto-merge for bot PRs
1414 run : gh pr merge --auto --squash "$PR_URL"
1515 env :
1616 PR_URL : ${{github.event.pull_request.html_url}}
17- GH_TOKEN : ${{secrets.GITHUB_TOKEN }}
17+ GH_TOKEN : ${{secrets.MNE_BOT_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Bot auto-push
22on : # yamllint disable-line rule:truthy
33 push :
44 branches :
5- - dependabot/*
6- - pre-commit-ci/ *
5+ - dependabot/**
6+ - pre-commit-ci*
77
88jobs :
99 autobot :
2424 git config --global user.email "[email protected] " 2525 COMMIT_MESSAGE=$(git show -s --format=%s)
2626 # Detect dependabot and pre-commit.ci commit messages
27+ # mne-bot PRs (SPEC0, credit) shouldn't need it since we commit with mne-bot user
2728 if [[ "$COMMIT_MESSAGE" == '[dependabot]'* ]] || [[ "$COMMIT_MESSAGE" == '[pre-commit.ci]'* ]] ; then
2829 echo "Pushed commit to run CircleCI for: $COMMIT_MESSAGE" | tee -a $GITHUB_STEP_SUMMARY
2930 git commit --allow-empty -m "mne[bot] Push commit to run CircleCI"
You can’t perform that action at this time.
0 commit comments