Repository navigation
docs: Pin README status badges to main and ignore build-repair logs - #138
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The documentation and workflow changes are consistent, correctly scoped, and introduce no unresolved issues.
Review effort: Balanced
Findings: None
What changed in this PR
Pins README workflow badges to main and removes generated build-repair artifacts.
Changes:
- Redirects test and workflow badges to current
mainruns. - Enables Markdown linting on
mainpushes. - Ignores and removes generated build logs.
| File | Description |
|---|---|
README.md |
Updates workflow badge targets and filters. |
.github/workflows/lint-markdown.yml |
Adds linting for main pushes. |
.gitignore |
Ignores generated build logs. |
docs/build-log.txt |
Removes a generated log artifact. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Point the test badge at test.yml (Test Suite), which runs the tests on main. The old badge used ci.yml, a build-only gate that never runs on main. - Add ?branch=main to the workflow badges so a failing PR can't turn the README red. - Link the xUnit badge to the Test Suite workflow. - Run Lint Markdown on pushes to main so its badge has a main status. - Ignore build-log.txt (written by the build-repair prompt) and untrack docs/build-log.txt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mpaulosky
force-pushed
the
chore/readme-badge-branch-fixes
branch
from
September 29, 2026 01:21
43e819b to
08f8636
Compare
mpaulosky
enabled auto-merge (squash)
September 29, 2026 01:24
Contributor
A force-push leaves github.event.before pointing at a commit the runner cannot resolve, so git diff failed with "bad object". Fall back to the pushed commit's own files whenever the before commit is missing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| if [[ "${{ github.event.before }}" == "0000000000000000000000000000000000000000" ]]; then | ||
| # A new branch has no "before" commit, and a force-push leaves an unreachable one. | ||
| if ! git cat-file -e "${{ github.event.before }}^{commit}" 2>/dev/null; then | ||
| files=$(git diff-tree --no-commit-id --name-only -r "${{ github.sha }}" -- '*.md') |
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.

Follow-up to #137.
Summary
test.yml(Test Suite), which runs the tests on every code push tomain. It used to point atci.yml, a build-only gate that never runs onmain, so the badge showed the latest PR run.?branch=mainto each one and link it to that workflow'smainruns, so a failing PR can't turn the README red.maintoo, so its badge has amainstatus. Also fix the bracket spacing yamllint flagged in the trigger block.build-log.txt, which the build-repair prompt writes, and untrackdocs/build-log.txt.github.event.beforepointing at a commit the runner could not resolve, sogit difffailed withbad object. The step now lints the pushed commit's own files whenever the before commit is missing.Validation
markdownlint-cli2 README.md: 0 issuesyamllint .github/workflows/lint-markdown.yml: clean🤖 Generated with Claude Code