Skip to content

[Merged by Bors] - ci: update splice-bot, enable splice-bot merge#36935

Closed
bryangingechen wants to merge 1 commit intoleanprover-community:masterfrom
bryangingechen:splice-bot-label-commands
Closed

[Merged by Bors] - ci: update splice-bot, enable splice-bot merge#36935
bryangingechen wants to merge 1 commit intoleanprover-community:masterfrom
bryangingechen:splice-bot-label-commands

Conversation

@bryangingechen
Copy link
Copy Markdown
Contributor

This bumps the version of the SpliceBot (changes) to include support for "label commands" and gives mathlib-splicebot the ability to use the auto-merge-after-CI label.

After this is merged, maintainers will be able to type splice-bot merge in a pull request review comment and the splicebot will do its thing, and also apply the auto-merge-after-CI label, which will cause the PR to be merged if CI passes. Note that this also makes normal usage stricter -- splice-bot trailing text will be interpreted as a label command, and will fail.

The label_command input is set to a repo variable so that we can adjust it if needed without opening a PR. For now I have added the following in the SPLICEBOT_LABEL_COMMANDS variable:

[
  {
    "command": "merge",
    "label": "auto-merge-after-CI",
    "min_repo_permission": "disabled",
    "allowed_teams": ["leanprover-community/mathlib-maintainers"]
  }
]

Open in Gitpod

@github-actions
Copy link
Copy Markdown

PR summary 61155454e5

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

Workflow documentation reminder

This PR modifies files under .github/workflows/.
Please update docs/workflows.md if the workflow inventory, triggers, or behavior changed.

Modified workflow files:

  • .github/workflows/build_template.yml
  • .github/workflows/splice_bot.yaml
  • .github/workflows/splice_bot_wf_run.yaml

@github-actions github-actions bot added the CI Modifies the continuous integration setup or other automation label Mar 21, 2026
source_workflow: ${{ github.event.workflow_run.name }}
push_to_fork: leanprover-community/mathlib4_copy
min_repo_permission: 'write'
min_repo_permission: 'disabled'
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This simplifies permissions slightly; now the command is restricted to the allowed teams only and doessn't check repo roles.

Copy link
Copy Markdown
Contributor

@joneugster joneugster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have nothing to add, thanks for the PR!

maintainer merge

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by joneugster.


pull_request_review, wf_run

@mathlib-triage mathlib-triage bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Mar 27, 2026
@adomani
Copy link
Copy Markdown
Contributor

adomani commented Mar 28, 2026

Thanks!

I'll delegate, so, once you merge, you can quickly test!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 28, 2026

✌️ bryangingechen can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Mar 28, 2026
@bryangingechen
Copy link
Copy Markdown
Contributor Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Mar 28, 2026
This bumps the version of the SpliceBot ([changes](leanprover-community/SpliceBot@146ee71...a463ae1)) to include support for "label commands" and gives `mathlib-splicebot` the ability to use the `auto-merge-after-CI` label. 

After this is merged, maintainers will be able to type `splice-bot merge` in a pull request review comment and the splicebot will do its thing, and also apply the `auto-merge-after-CI` label, which will cause the PR to be merged if CI passes. Note that this also makes normal usage stricter -- `splice-bot trailing text` will be interpreted as a label command, and will fail.

The `label_command` input is set to a repo variable so that we can adjust it if needed without opening a PR. For now I have added the following in the `SPLICEBOT_LABEL_COMMANDS` variable:
```json
[
  {
    "command": "merge",
    "label": "auto-merge-after-CI",
    "min_repo_permission": "disabled",
    "allowed_teams": ["leanprover-community/mathlib-maintainers"]
  }
]
```
@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Mar 28, 2026
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Mar 28, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title ci: update splice-bot, enable splice-bot merge [Merged by Bors] - ci: update splice-bot, enable splice-bot merge Mar 28, 2026
@mathlib-bors mathlib-bors bot closed this Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Modifies the continuous integration setup or other automation delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants