Automate `lake update` PRs

Open
#294 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@buyolitsez is already working on this.

Since Jun 23, 2026.

  • #676 by @buyolitsez — open

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
github-actions
Domain
ci-cd, devops

Research direction

Start by reading issue #293 and the Mathlib equivalent mentioned in the issue to understand the existing update workflow. Inspect the repository's current CI and workflow configuration, then determine how lake update, PR creation, CI results, and merge-queue handling should fit together. Done means a scheduled update PR is opened, merged after successful CI, and left open on failure.

Written by the indexing model from the issue text.

Description

Following #293, we would like a workflow that automates running lake update. What I would like ideally is:

  • at some cron interval (day, week?) the bot runs lake update and opens a PR
  • if CI is a success, the bot places it on the merge queue
  • on failure, the PR remains open so a maintainer can fix

This will need to be a little different from the Mathlib equivalent, as the bot will need to actually merge the PR versus leaving a bors comment.

Dominant language
Lean
Stars
862
Forks
242
Avg merge
1d 4h
Merged PRs (30d)
55

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from leanprover/cslib

All issues in leanprover/cslib

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.