Skip to content

Conversation

@philpennock
Copy link
Contributor

We have two tools and often only one updates at a time. An example of a PR generated by the prior state is
#65.

It's ugly that we have to read so carefully to note that nsc was not updated there.

Unfortunately with GHActions YAML, making the body more dynamic required ugliness elsewhere, namely serializing text into JSON to put it into a single line, to pass as an output between steps.

Copy link

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

This workflow change makes the automated version-bump PRs clearly indicate which NATS tools actually changed and structures the commit message/body dynamically based on the updates.

Changes:

  • Refactors the update logic into a reusable update_one function that tracks which tools were updated and builds a structured commit message and PR body table.
  • Adjusts step outputs (updated, which_tools, and a JSON commit payload) to drive the PR title, commit message, and body from the update_versions step.
  • Simplifies and unifies how current and latest versions are written to $GITHUB_OUTPUT.

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

Base automatically changed from pdp/chore-updates to main January 28, 2026 17:01
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 28, 2026

Deploying nats-tools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4086b6f
Status: ✅  Deploy successful!
Preview URL: https://e6612bea.nats-tools.pages.dev
Branch Preview URL: https://pdp-update-workflow-filter-c.nats-tools.pages.dev

View logs

We have two tools and often only one updates at a time.  An example of a PR
generated by the prior state is
<#65>.

It's ugly that we have to read so carefully to note that `nsc` was not updated
there.

Unfortunately with GHActions YAML, making the body more dynamic required
ugliness elsewhere, namely serializing text into JSON to put it into a single
line, to pass as an output between steps.
@philpennock philpennock force-pushed the pdp/update-workflow-filter-claims branch from 94c3216 to 4086b6f Compare January 28, 2026 20:24
@philpennock
Copy link
Contributor Author

(force-push to rebase instead of merge in main)

@philpennock philpennock marked this pull request as ready for review January 28, 2026 20:24
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.

1 participant