Skip to content

fix(docs): update existing solidity preview comments - #3

Merged
piotr-roslaniec merged 2 commits into
mainfrom
fix/solidity-docs-preview-comments
Sep 11, 2026
Merged

fix(docs): update existing solidity preview comments#3
piotr-roslaniec merged 2 commits into
mainfrom
fix/solidity-docs-preview-comments

Conversation

@mswilkison

Copy link
Copy Markdown

Repeated Solidity docs runs now update the existing github-actions[bot] preview comment for the same projectDir. A stable encoded marker separates projects, and paginated lookup leaves other users' comments and older unmarked comments untouched. commentPR remains disabled by default.

Validation: all 22 tests and full ESLint pass using Node 16, matching actions/github-script@v6. Nine mocked API tests execute the actual workflow script and cover creation, updates, multiple projects, ownership, pagination, input encoding, and lookup failures. Eight of those tests failed against the original workflow.

Fixes #2.

@mswilkison
mswilkison marked this pull request as ready for review September 10, 2026 18:41
mswilkison and others added 2 commits September 11, 2026 20:15
Keep one workflow-owned preview comment per project across repeat runs. Test the shipped workflow script against a mocked GitHub API.

Fixes #2
Match the workflow-owned preview comment by first line instead of a
bare-LF prefix, so a comment edited in the GitHub web UI (CRLF line
endings) is still updated instead of orphaning a stale copy. Document
that overlapping runs for the same projectDir are not serialized, and
pin the newline-agnostic match with a CRLF-body test. Gate the comment
if-condition and the update payload assertions on the exact expected
values.
@piotr-roslaniec
piotr-roslaniec force-pushed the fix/solidity-docs-preview-comments branch from 3e0c9c8 to d5fc473 Compare September 11, 2026 20:16
@piotr-roslaniec
piotr-roslaniec merged commit 91f574f into main Sep 11, 2026
1 check passed
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.

Update existing Solidity docs preview comments on repeat runs

2 participants