Repository navigation
Post one plain-words PR comment with Bite's result - #34
Merged
Merged
Conversation
Each run now writes bite_proof/COMMENT.md: a one-line verdict ("1 change
worth a look" or "your tests really check the changes"), what to do, and
each commit in a collapsed list. A change no test checks is worded as
worth a look, not as a mistake, since tidy-ups and docs are fine
without a test. Commit subjects are escaped.
The Action posts it on the pull request and edits the same comment on
later pushes (found by its <!-- bite-check --> marker). If the token
can't comment, as on pull requests from forks, it warns and the check
still passes or fails as before. New inputs: comment (default true) and
github-token. The workflow and README ask for pull-requests: write.
Assisted-by: Claude Code
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0175Q8iCvMrHYVQGhoif8oRX
✅ Bite: your tests really check the changes in this pull requestTaking each change back out makes a test fail, so the tests would notice if it broke. Every commit, and how Bite checked
Bite takes each commit's code change back out and runs your tests. A test that really checks a change fails when the change is gone. The steps to rerun each check yourself are on the job's summary page. What is Bite? |
Only <, > and & need escaping in the comment; escaping quotes too showed Bite's as Bite's in the raw comment text. Assisted-by: Claude Code Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175Q8iCvMrHYVQGhoif8oRX
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.
Requested by CH · project thread
Follow-up to #33. The Bite Action now leaves one comment on the pull request that a non-coder can read, and edits that same comment on later pushes instead of adding new ones.
The comment
How
recent.py: each run writesbite_proof/COMMENT.md(newwrite_comment).action.yml: posts it withgh api, finding its old comment by a hidden<!-- bite-check -->marker. If the token can't comment (for example on pull requests from forks), it prints a warning and the check still passes or fails as before. New inputs:comment(default true) andgithub-token.pull-requests: write.Checked locally
python -m pytest: 63/63 selftest checks pass, including a new one for the comment's verdict, what-to-do line, collapsed section and escaping.gh: the first run creates the comment and the second edits comment 123 instead of adding one.recent.py, so thebitecheck on it is a live run of the comment.AI helped write this (Claude Code); the commit carries an
Assisted-by:line.Generated by Claude Code