Repository navigation
Put the report on the pull request: summary, comment and label - #77
Merged
Merged
Conversation
Getting a report onto a pull request took a hand-written workflow that posted the comment and guessed the label. pull-request reads the json report and writes the job summary, keeps one comment up to date, and sets the release-drafter label the suggested change calls for, removing only labels it set itself. Without write access, as on a fork's pull request, it writes the summary, warns and succeeds. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mpdreamz
force-pushed
the
pull-request
branch
from
November 14, 2026 08:19
8797537 to
24f1ecd
Compare
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.
A new
pull-requestcommand readsapi-changes.jsonand puts it on the pull request a GitHub Actions run is for. It writes the job summary, keeps one comment up to date, and sets the release label the suggested change calls for.Prompt summary: The tool is being dusted off. It needs a clear path to hooking it up to pull requests, and it should set labels. The label it sets is the one release-drafter turns into the next version, which closes the loop between an API change and its release.
Why
The GitHub Action ran the diff and stopped. Posting the
github-commentfile, finding the old comment and choosing a label was left to each repository's workflow, and nothing set a label from the suggested change.What
One comment, kept up to date
The comment opens with a hidden marker,
<!-- assembly-differ -->. A later run finds it and edits it, so a pull request never collects one comment per push. It shows the suggested change, the baseline when there is one, the number of breaking changes, and each assembly's changes as a nested list in a collapsed block. Past 60,000 characters it stops and says how many changes did not fit. The same text goes toGITHUB_STEP_SUMMARY.Labels it owns, and only those
Majorsetsbreaking,Minorsetsfeature, andPatchsets none.--major-label,--minor-labeland--patch-labelchange that. The comment records which labels this tool set. A later run removes only those, so a label a person added stays, and a change that drops fromMajortoMinorswapsbreakingforfeature.Forks and other runs
A read-only token, as on a pull request from a fork, gets 403 or 404. The command then writes the job summary, prints a warning and exits
0. Outside a pull request, with no number inGITHUB_EVENT_PATHand no--pull-request, it writes the summary only. If GitHub cannot be reached, it prints why and exits1. Requests and responses useHttpClientandUtf8JsonWriter, so the native-AOT binary runs it.Verify
Stack: 2 of 2, on top of #76.
🤖 Generated with Claude Code