feat: include constructor args and method calls in deployment summary#46
Open
rubydusa wants to merge 1 commit into
Open
Conversation
Closes #17. The deployment summary now reads run-latest.json directly and emits constructor arguments per deployed contract plus a collapsible section listing every post-deploy CALL with its function signature and arguments. - deployment-summary.sh: switched from deployment-summary.txt to BROADCAST_FILE, renders constructor args column and Method Calls <details> block (omitted when no CALLs). - parse-broadcast.sh: dropped the now-unused deployment-summary.txt write. - Workflows: pass BROADCAST_FILE through to the summary step. - Tests + fixture: enriched broadcast fixture with arguments/function fields; expanded deployment-summary tests; trimmed parse-broadcast test for the removed file. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the deployment reporting pipeline to render a richer GitHub Actions step summary directly from Foundry’s run-latest.json, including constructor arguments for deployed contracts and a collapsible section listing post-deploy method calls with their arguments.
Changes:
deployment-summary.shnow consumesBROADCAST_FILE(Foundry broadcast JSON) and renders constructor args + a “Method Calls”<details>section.- Removes the
deployment-summary.txtintermediate output fromparse-broadcast.sh(now logs CREATE entries to stdout only). - Updates workflows to pass
BROADCAST_FILE, and refreshes fixtures/tests to cover the new summary behavior.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
scripts/deploy/deployment-summary.sh |
Generate step summary from broadcast JSON, including constructor args and CALL listings. |
scripts/deploy/parse-broadcast.sh |
Stop writing deployment-summary.txt; emit CREATE entries to stdout and outputs to $GITHUB_OUTPUT. |
tests/test-deployment-summary.sh |
Adds coverage for constructor args, method calls section, omission behavior, custom title, and missing broadcast error. |
tests/test-parse-broadcast.sh |
Updates expectations to match stdout logging rather than a generated file. |
tests/fixtures/broadcast/Deploy.s.sol/31337/run-latest.json |
Expands fixture to include arguments and a sample CALL transaction. |
.github/workflows/_foundry-cicd.yml |
Passes BROADCAST_FILE into the deployment summary step. |
.github/workflows/_deploy-testnet.yml |
Passes BROADCAST_FILE into the deployment summary step. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
3
to
5
| # Parse Foundry broadcast artifacts after deployment. | ||
| # Finds run-latest.json, extracts chain ID, writes deployment-summary.txt. | ||
| # Finds run-latest.json and extracts the chain ID. | ||
| # |
Comment on lines
8
to
10
| # BLOCKSCOUT_URL — required | ||
| # BROADCAST_FILE — required, path to run-latest.json | ||
| # SUMMARY_TITLE — optional, defaults to "Deployment Summary" |
RonTuretzky
approved these changes
May 6, 2026
Contributor
RonTuretzky
left a comment
There was a problem hiding this comment.
Other than the copilot comments, looks good to me.
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
run-latest.jsondirectly and renders constructor arguments for each deployed contract plus a collapsible Method Calls section that lists every post-deployCALLwith its function signature and arguments.deployment-summary.shnow requiresBROADCAST_FILE(already an output ofparse-broadcast.sh); the obsoletedeployment-summary.txtintermediate is gone._deploy-testnet.ymland_foundry-cicd.ymlpassBROADCAST_FILEto the summary step.Sample output
Test plan
bash tests/test-deployment-summary.sh— 5/5 pass (table render, method-calls section, omission when no CALLs, custom title, missing-broadcast error)bash tests/test-parse-broadcast.sh— 3/3 passbash tests/test-*.sh) — all greenfind scripts/ -name '*.sh' -exec shellcheck -s bash {} +— clean🤖 Generated with Claude Code