Skip to content

feat(ci): add opt-in gist-backed status badges - #3

Merged
mbloechli merged 2 commits into
mainfrom
feat/gist-badges
Jul 14, 2026
Merged

feat(ci): add opt-in gist-backed status badges#3
mbloechli merged 2 commits into
mainfrom
feat/gist-badges

Conversation

@mbloechli

@mbloechli mbloechli commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • GitHub's native badge.svg reports at the workflow-file level and won't render for anonymous viewers of a private repo's README, so per-distro badges for private consumer repos (e.g. duatic_skills) currently can't work.
  • Adds an opt-in badge_gist_id input (+ GIST_TOKEN secret) to reusable_ici.yml, threaded through ci_orchestrator.yml, that publishes each distro's pass/fail to a gist via schneegans/dynamic-badges-action. Consumers then point shields.io's endpoint renderer at the gist file.
  • Disabled by default (empty gist ID); only writes on pushes to main (matches old ?branch=main semantics), so PR runs never flip a README badge.
  • Documents the opt-in setup steps in README.md.

Test plan

  • pre-commit run --files .github/workflows/reusable_ici.yml .github/workflows/ci_orchestrator.yml README.md passes (includes actionlint)
  • After merge + release, exercise from duatic_skills with badge_gist_id set: confirm the "Publish status badge" step runs on a main push and writes <repo>-<distro>.json to the gist, and is skipped on PR runs

GitHub's native badge.svg reports per workflow file, not per matrix
entry, and doesn't render for anonymous viewers of a private repo's
README. Add an opt-in badge_gist_id input (plus GIST_TOKEN secret)
that publishes each distro's pass/fail to a gist via
schneegans/dynamic-badges-action, so consumers can render per-distro
badges via shields.io's endpoint renderer regardless of repo
visibility. Badges are only written on pushes to main, matching the
old ?branch=main semantics; disabled by default (empty gist ID).
@mbloechli mbloechli self-assigned this Jul 14, 2026
@mbloechli
mbloechli merged commit 477be8e into main Jul 14, 2026
1 check passed
@mbloechli
mbloechli deleted the feat/gist-badges branch July 14, 2026 11:20
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