Skip to content

Rubydusa/sticky pr comment with addresses#37

Merged
rubydusa merged 3 commits into
mainfrom
Rubydusa/sticky-pr-comment-with-addresses
May 6, 2026
Merged

Rubydusa/sticky pr comment with addresses#37
rubydusa merged 3 commits into
mainfrom
Rubydusa/sticky-pr-comment-with-addresses

Conversation

@rubydusa
Copy link
Copy Markdown
Contributor

@rubydusa rubydusa commented Apr 27, 2026

sticky pr comment with addresses of contracts

Q: Should the coverage comment and addresses comment be one?

Decided against it - user could possibly not want testnet releases and the separation play nicely here

@rubydusa
Copy link
Copy Markdown
Contributor Author

proof of this working:
BreadchainCoop/etherform-playground#9 (comment)

@rubydusa rubydusa marked this pull request as ready for review April 30, 2026 14:54
@rubydusa rubydusa requested a review from RonTuretzky April 30, 2026 14:54
…mment-with-addresses

# Conflicts:
#	.github/workflows/_deploy-testnet.yml
#	.github/workflows/_foundry-cicd.yml
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new helper script and CI wiring to publish a sticky PR comment containing deployed contract addresses (with explorer links) for testnet deployments, complementing the existing deployment summary/coverage reporting tooling.

Changes:

  • Add scripts/deploy/deployment-comment.sh to render deployment-summary.txt into a markdown file suitable for sticky PR comments.
  • Add unit tests for the new script and run them in the scripts test workflow.
  • Update reusable deployment workflows to write/post the sticky deployment comment and grant required PR write permissions.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/test-deployment-comment.sh Adds bash tests covering rendering, title behavior, output path, and missing env handling.
scripts/deploy/deployment-comment.sh Implements generation of deployment-comment.md from deployment-summary.txt with explorer links.
.github/workflows/test.yml Runs the new deployment-comment test in CI.
.github/workflows/_foundry-cicd.yml Posts the deployment address comment during PR-triggered testnet deploys; adds PR write permissions.
.github/workflows/_deploy-testnet.yml Posts the deployment address comment during PR-triggered reusable testnet deploys; adds PR write permissions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@RonTuretzky RonTuretzky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@rubydusa rubydusa merged commit 4e78fbb into main May 6, 2026
6 checks passed
@rubydusa rubydusa deleted the Rubydusa/sticky-pr-comment-with-addresses branch May 6, 2026 01:31
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.

4 participants