Skip to content

Commit b76f80e

Browse files
committed
FIX: Moreu
1 parent 166e6b5 commit b76f80e

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ updates:
44
directory: "/"
55
schedule:
66
interval: "weekly"
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"
711
commit-message:
812
prefix: "[dependabot]"

.github/workflows/automerge.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: 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

48
jobs:
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}}

.github/workflows/autopush.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Bot auto-push
22
on: # yamllint disable-line rule:truthy
33
push:
44
branches:
5-
- dependabot/*
6-
- pre-commit-ci/*
5+
- dependabot/**
6+
- pre-commit-ci*
77

88
jobs:
99
autobot:
@@ -24,6 +24,7 @@ jobs:
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"

0 commit comments

Comments
 (0)