B2: project-status step — GitHub repo momentum#48
Merged
Conversation
WHAT: Add a `project-status` step that summarizes a GitHub repository's
momentum for the morning report:
- pulse: issues closed in the last 7 days
- open issues bucketed by priority label (p0 active / p1 up-next / p2 backlog)
- blocked issues (label `blocked`)
- open PR count
It runs three `gh ... --json` list queries per repo (open issues with
labels, open PRs, closed-since-cutoff), all via ExecGate. Uses
shared.github_repos by default or a step `repos` override. data_schema
{projects:[{project, state, pulse_closed_7d, active_p0, up_next_p1,
backlog_p2, blocked, open_prs}]}; golden pinned. Auth failures soft-skip
with the `gh auth login` hint, mirroring github-pr-scan.
The 7-day pulse window is a display/query window, never a coordination
primitive.
WHY: closes the second gila-morning parity gap (`gila project status`),
giving the dashboard a per-project momentum read without a separate tool.
Disclosure tier: step. Registered + documented + data-contract + golden.
FIXTURE-SYNC: the gh JSON-list shape is exercised by
tests/live_contract.rs::live_gh_pr_list_json_shape.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Second morning-parity-gap PR (Part B). Adds a
project-statusstep that summarizes a GitHub repository's momentum for the dashboard — mirroringgila project status.blocked)Runs three
gh … --jsonlist queries per repo (open issues w/ labels, open PRs, closed-since-cutoff), all viaExecGate. Usesshared.github_reposby default or a stepreposoverride.data_schema{projects:[{project, state, pulse_closed_7d, active_p0, up_next_p1, backlog_p2, blocked, open_prs}]}— golden pinned. Auth failures soft-skip with thegh auth loginhint.The 7-day pulse window is a display/query window, never a coordination primitive.
Disclosure tier: step.
Test plan
just checkgreen (fmt + clippy -D warnings + all tests incl. golden + data-contract; EXIT=0).summarizes_momentum_from_gh_json(asserts every bucket + endpoints),auth_failure_soft_skips,no_repos_is_ok_noop.🤖 Generated with Claude Code