Skip to content

Simplify release-check pipeline and expand PR comment#343

Merged
dotNomad merged 1 commit intopr-release-comment-refactorfrom
simplify-pr-release-comment
Apr 16, 2026
Merged

Simplify release-check pipeline and expand PR comment#343
dotNomad merged 1 commit intopr-release-comment-refactorfrom
simplify-pr-release-comment

Conversation

@dotNomad
Copy link
Copy Markdown
Collaborator

@dotNomad dotNomad commented Apr 16, 2026

Summary

Proposed simplifications on top of #342:

  • Consolidate the should_release step in release-extension/action.yml: single message/output/JSON emission at the end of the step instead of the 3-branch write_release_check helper. Uses jq -n --arg/--argjson for safer JSON construction than hand-built string concatenation.
  • Gate the release-check artifact upload at the action level (pull_request && MANIFEST_VERSION != '0.0.0'), so the downstream comment job doesn't need to filter.
  • Merge the aggregate + comment workflow steps into one. The intermediate no_release.json file and duplicate empty-check are gone.
  • Expand the PR comment to summarize both will-release and won't-release extensions in separate sections — so contributors can also see what will release on merge, not just flag the mistakes.

- Consolidate the should_release step in the release-extension action:
  single message/output/JSON emission instead of a 3-branch helper, and
  use jq -n for safer JSON construction.
- Gate release-check artifact upload at the action level (PRs, non-0.0.0),
  dropping the filter that used to live downstream.
- Merge the aggregate + comment workflow steps into one; no intermediate
  no_release.json, no duplicate empty-check.
- Expand the PR comment to summarize both will-release and won't-release
  extensions so contributors can confirm what will release on merge.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@juleswg23 juleswg23 left a comment

Choose a reason for hiding this comment

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

This looks fantastic, thanks! I especially like including the "will release" info in the comment.

@dotNomad
Copy link
Copy Markdown
Collaborator Author

This looks fantastic, thanks! I especially like including the "will release" info in the comment.

Fantastic I'll merge it into your branch

@dotNomad dotNomad merged commit eb3fbf4 into pr-release-comment-refactor Apr 16, 2026
13 checks passed
@dotNomad dotNomad deleted the simplify-pr-release-comment branch April 16, 2026 22:51
dotNomad added a commit that referenced this pull request Apr 16, 2026
…aded (#342)

* Refactor pr-release-comment to use release-check artifacts

Instead of duplicating version comparison logic, the pr-release-comment
job now reads release-check-*.json artifacts emitted by release-extension.
This keeps the version logic in one place.

Changes:
- release-extension action now writes release-check JSON inline at each
  decision point (will release / holding back / 0.0.0)
- pr-release-comment depends on release jobs instead of change-detection
  jobs, and aggregates the artifacts with jq

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* make comment more accurate

* test: trigger reaper extension without version bump

* fix: rename artifact to would-release to avoid collision with release-*.json pattern

* change landing page instead of reaper

* CI test: change second app without updating manifest

* refactor: simplify release-check pipeline and summarize will-release (#343)

- Consolidate the should_release step in the release-extension action:
  single message/output/JSON emission instead of a 3-branch helper, and
  use jq -n for safer JSON construction.
- Gate release-check artifact upload at the action level (PRs, non-0.0.0),
  dropping the filter that used to live downstream.
- Merge the aggregate + comment workflow steps into one; no intermediate
  no_release.json, no duplicate empty-check.
- Expand the PR comment to summarize both will-release and won't-release
  extensions so contributors can confirm what will release on merge.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* revert README test changes

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Jordan Jensen <jordan.jensen@posit.co>
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.

2 participants