Skip to content

Commit f7bbfcc

Browse files
ci: update splice-bot, enable splice-bot merge
1 parent 6115545 commit f7bbfcc

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/build_template.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,8 @@ jobs:
915915
- if: >- # bot usernames will cause this step to error with "Could not resolve to a User..."
916916
contains(steps.PR.outputs.pr_labels, 'auto-merge-after-CI') &&
917917
steps.get-label-actor.outputs.username != 'mathlib-nolints' &&
918-
steps.get-label-actor.outputs.username != 'mathlib-update-dependencies'
918+
steps.get-label-actor.outputs.username != 'mathlib-update-dependencies' &&
919+
steps.get-label-actor.outputs.username != 'mathlib-splicebot'
919920
name: check team membership
920921
uses: tspascoal/get-user-teams-membership@57e9f42acd78f4d0f496b3be4368fc5f62696662 # v3.0.0
921922
id: actorTeams
@@ -930,6 +931,7 @@ jobs:
930931
(
931932
steps.get-label-actor.outputs.username == 'mathlib-nolints' ||
932933
steps.get-label-actor.outputs.username == 'mathlib-update-dependencies' ||
934+
steps.get-label-actor.outputs.username == 'mathlib-splicebot' ||
933935
contains(steps.actorTeams.outputs.teams, 'mathlib-maintainers') ||
934936
contains(steps.actorTeams.outputs.teams, 'bot-users')
935937
)

.github/workflows/splice_bot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions: {}
99
jobs:
1010
call-splice-bot:
1111
if: ${{ contains(github.event.comment.body, 'splice-bot') }}
12-
uses: leanprover-community/SpliceBot/.github/workflows/splice.yaml@fdb442693d6f613b25d2599ad64fd87cf019b9ce # master
12+
uses: leanprover-community/SpliceBot/.github/workflows/splice.yaml@a463ae17022e8eb5929a208c1b136aeebcaf77e1 # master
1313
with:
1414
# Optional override; omit to use the reusable workflow's default "master"
1515
base_ref: master

.github/workflows/splice_bot_wf_run.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,16 @@ jobs:
4545
owner: leanprover-community
4646

4747
- name: Run splice bot action
48-
uses: leanprover-community/SpliceBot/.github/actions/splice-wf-run@146ee716fab40e9cae384b9932fded8b9999b16d
48+
uses: leanprover-community/SpliceBot/.github/actions/splice-wf-run@a463ae17022e8eb5929a208c1b136aeebcaf77e1
4949
with:
5050
source_workflow: ${{ github.event.workflow_run.name }}
5151
push_to_fork: leanprover-community/mathlib4_copy
52-
min_repo_permission: 'write'
52+
min_repo_permission: 'disabled'
5353
allow_pr_author: 'true'
5454
allowed_teams: |
5555
leanprover-community/mathlib-reviewers
5656
leanprover-community/mathlib-maintainers
5757
token: ${{ steps.token.outputs.token }}
5858
authz_token: ${{ steps.authz-token.outputs.token }}
5959
branch_token: ${{ steps.branch-token.outputs.token }}
60+
label_commands: ${{ vars.SPLICEBOT_LABEL_COMMANDS }}

0 commit comments

Comments
 (0)