Skip to content

feat: add stale-repos and pending-releases audit tasks Completes the Tier 2 org visibility tasks from the plan. stale-repos Lists all non-archived repos whose last push pre-dates a configurable cutoff (MONTHS=12 default). Sorted by push date ascending (stalest first) and age-coloured: red >2 years, yellow >1 year, normal otherwise. Outputs the last-push date and age in months so it's easy to triage archiving candidates. FILTER= narrows by repo name. pending-releases Finds open PRs labelled "autorelease: pending" across the entire org via gh search — fast, single query. Shows repo, PR number, age, and title in an age-coloured table (red >14d, yellow >3d, green <3d). Designed as the table-view companion to list-release-prs (which opens browser tabs). FILTER= narrows by repo name. Footer links to force-merge-prs and list-release-prs for next steps. Also adds both tasks to the file header reference comment. https://claude.ai/code/session_01SFKChTX8gNGNmh4in5Fj8W#141

Merged
damacus merged 2 commits intomainfrom
claude/org-audit-visibility-cf5O8
Mar 21, 2026

Conversation

@damacus
Copy link
Member

@damacus damacus commented Mar 21, 2026

Description

Describe what this change achieves.

Issues Resolved

List any existing issues this PR resolves.

Check List

  • All commit messages follow Conventional Commits format
    • Required: This triggers our automated CHANGELOG and release pipeline (release-please)
    • Without conventional commits, your changes cannot be released
    • Examples: fix: resolve bug in resource, feat: add new property, docs: update README
  • New functionality includes testing
  • New functionality has been documented in the README if applicable

⚠️ Important: Automated Release Workflow

DO NOT manually edit these files:

  • metadata.rb version - Managed by release-please
  • CHANGELOG.md - Auto-generated from conventional commits
  • ❌ Version tags - Created automatically on release

The release process:

  1. Merge PR with conventional commits → release-please creates a release PR
  2. Merge release PR → automatic version bump, CHANGELOG update, and Supermarket publish
  3. Your changes are released! 🎉

Need help? See Conventional Commits guide

claude added 2 commits March 21, 2026 12:49
Adds five new tasks for gaining visibility across all 180+ repos
without requiring local clones — pure gh API throughout.

migration-status
  Uses GitHub code search (search/code) to find repos containing
  release-please-config.json in one paginated request, then diffs
  against the full repo list. Shows a progress bar + % complete and
  lists all un-migrated repos by name. FILTER= narrows by name substr.

open-prs
  gh search prs --owner sous-chefs gives all open PRs in a single
  query. Table is age-coloured (green/yellow/red) and sorted by repo.
  FILTER=, AUTHOR=, LABEL= are applied as post-search jq filters.

ci-status
  Iterates repos active in the last 90 days, checks
  /commits/main/check-runs for each, and reports any failures with the
  failing check names. Progress printed every 25 repos. FILTER= narrows
  scope.

label-sync
  Ensures all repos have the four labels that release-please and
  Renovate depend on: autorelease:pending, autorelease:tagged,
  Release:Patch, Skip:Announcements. Uses gh label create --force so
  it is idempotent. DRY_RUN=true previews without changes. FILTER=
  targets a subset of repos.

secrets-check
  Lists org-level Actions secrets and checks whether the three
  required release pipeline secrets are present
  (PORTER_GITHUB_TOKEN, CHEF_SUPERMARKET_USER, CHEF_SUPERMARKET_KEY).
  Links to the org secrets settings page if any are missing.

Also adds the five new tasks to the file header reference comment.

https://claude.ai/code/session_01SFKChTX8gNGNmh4in5Fj8W
Completes the Tier 2 org visibility tasks from the plan.

stale-repos
  Lists all non-archived repos whose last push pre-dates a configurable
  cutoff (MONTHS=12 default). Sorted by push date ascending (stalest
  first) and age-coloured: red >2 years, yellow >1 year, normal
  otherwise. Outputs the last-push date and age in months so it's easy
  to triage archiving candidates. FILTER= narrows by repo name.

pending-releases
  Finds open PRs labelled "autorelease: pending" across the entire org
  via gh search — fast, single query. Shows repo, PR number, age, and
  title in an age-coloured table (red >14d, yellow >3d, green <3d).
  Designed as the table-view companion to list-release-prs (which opens
  browser tabs). FILTER= narrows by repo name. Footer links to
  force-merge-prs and list-release-prs for next steps.

Also adds both tasks to the file header reference comment.

https://claude.ai/code/session_01SFKChTX8gNGNmh4in5Fj8W
@damacus damacus merged commit 08cbd7f into main Mar 21, 2026
@damacus damacus deleted the claude/org-audit-visibility-cf5O8 branch March 21, 2026 16:13
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.

2 participants