feat(project): sweep the whole org onto the board from a public runner - #36
Merged
Conversation
Actions minutes are billed to the caller, never to the repo holding the reusable workflow. The per-repo 'uses:' shims already point at github-workflows and that saves nothing -- a private repo firing the event pays for the run. Standard runners are free in public repositories, and this repo is public, so every run of this sweep costs nothing. That is also why the cron can be this frequent: there is no minute budget to ration, only GitHub's scheduling latency. Boarding across the private repos currently costs ~516 billable minutes a month for a job that averages 7 seconds and reads no repository content -- it is pure Projects-V2 GraphQL and never needed to run where the content is. Second reason this exists: when GitHub stops creating runs from webhook events -- which has happened in this estate, stranding 24 issues at once -- the event-driven path silently stops boarding anything. A sweep keeps working, because it is not waiting on a webhook. Depends on the scope: org input added in JorisJonkers-dev/github-workflows#124. Refs #33 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AJYmuNrmiYv9wGRABoQYUi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
org-project-sweep.yml— a scheduled workflow that boards every open issue and PR across the organization, running from this public repo.Companion to JorisJonkers-dev/github-workflows#124, which adds the
scope: orginput this calls.Why it lives here
Actions minutes are billed to the caller, never to the repo holding the reusable workflow. The per-repo
uses:shims already point atgithub-workflowsand that saves nothing — a private repo firing the event pays for the run.Standard runners are free in public repositories. This repo is public, so every run of this sweep costs nothing. That is also why the cron can be
*/15— there is no minute budget to ration, only GitHub's own scheduling latency.Boarding across the private repos currently costs ~516 billable minutes/month for a job that averages 7 seconds and reads no repository content.
Second reason this is worth having
When GitHub stops creating runs from webhook events — which has happened in this estate, stranding 24 issues at once — the event-driven path silently stops boarding anything, and there is no signal that it has. A sweep keeps working, because it isn't waiting on a webhook.
Notes
concurrencywithcancel-in-progress: falseso a slow sweep doesn't stack behind the next tickadd-to-project-caller.ymlin this repo is left alone — it's free here and boards instantlyMerge order
Merge JorisJonkers-dev/github-workflows#124 first — this calls
@mainand will fail untilscope: orgexists there.Refs #33