Skip to content

feat: API endpoints for repo-scoped and global active batches#40

Merged
bryangingechen merged 1 commit intoleanprover-community:masterfrom
bryangingechen:batches-api
Nov 5, 2025
Merged

feat: API endpoints for repo-scoped and global active batches#40
bryangingechen merged 1 commit intoleanprover-community:masterfrom
bryangingechen:batches-api

Conversation

@bryangingechen
Copy link
Collaborator

We can use these endpoints to automate label management on our self-hosted runners.

This also lays the groundwork for future API endpoints which we could use in queueboard.

written by codex

@bryangingechen bryangingechen merged commit fcb44ed into leanprover-community:master Nov 5, 2025
13 checks passed
@bryangingechen bryangingechen deleted the batches-api branch November 5, 2025 21:02
bryangingechen added a commit to leanprover-community/azure-scripts that referenced this pull request Nov 6, 2025
… status (#50)

Per discussion in the maintainers channel.

The current algorithm is to check if there are any active bors batches (running or pending) (using an API endpoint added in leanprover-community/bors-ng#40), then:
- if so, then make sure at least one of the runners does not have the "pr" label
- otherwise, ensure all of the runners have the "pr" label

The workflow also ensures that all runners have the "bors" label.

(All other labels like "doc-gen" are not touched)

written by Claude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant