Skip to content

docs: pin CI badges to main branch - #237

Merged
monodo merged 1 commit into
mainfrom
chore/pin-ci-badges-to-main
Oct 7, 2026
Merged

monodo merged 1 commit into
mainfrom
chore/pin-ci-badges-to-main

Conversation

@monodo

@monodo monodo commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Both CI badges in README.md pointed at .../workflows/lint.yml/badge.svg and .../workflows/test.yml/badge.svg with no branch qualifier. GitHub's workflow badges without a �ranch query param reflect the most recent run across any branch, not specifically main. This made the badges flicker to red whenever a run on a feature branch or PR failed, even if main itself was green.

Change

Added ?branch=main to both badge URLs so they always reflect the status of main's latest run.

Testing

Documentation-only change, no code affected. Verified the badge URL format against GitHub's shields documentation convention (/badge.svg?branch=).

@monodo
monodo merged commit 3cc55a5 into main Oct 7, 2026
9 checks passed
@monodo
monodo deleted the chore/pin-ci-badges-to-main branch October 7, 2026 14:18
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