feat: expose written metadata as write action outputs#3
Open
y-nk wants to merge 5 commits into
Open
Conversation
Add `data` (post-merge stringified value) and `changed` (whether the PR body was updated) outputs to the write action, mirroring how read exposes its result. Document them in the README and assert them in the write self-test workflow.
tests-read and tests-write each do a whole-body read-modify-write on the same PR description. Running on separate pull_request triggers made them race and clobber each other's seeded markers. Convert both to reusable workflow_call workflows and add a tests orchestrator that chains them with `needs` so they run sequentially.
pulls.update is not immediately consistent, so a pulls.get a couple of seconds later can hit a stale replica and miss the just-seeded marker. Sleep 10s before each read-back (and before the merge step, which also re-reads the body) so the self-tests stop flaking on API propagation lag.
ThisIsManta
reviewed
Jun 22, 2026
ThisIsManta
approved these changes
Jun 24, 2026
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.
Summary
dataandchangedoutputs to thewriteaction.datais the stringified value actually persisted (after the shallow merge whenmerge: "true"), andchangedreports whether the PR body was updated.readalready exposesresult/has-metadata, and is the most reliable way for callers to learn the effective stored value of a merge write without reading the body back.merge.datadeep-equals what a subsequentreadreturns.Test plan
tests-writeworkflow passes on this PR (assertsseed/mergeoutputs and the merge→read round-trip).tests-readworkflow still passes.