GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Comment changeset status in PRs by bluwy · Pull Request #625 · changesets/action

Conversation

@bluwy

@bluwy bluwy commented May 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

You can test the action with uses: changesets/action/comment-pr-changeset@comment-pr-changeset-dist.

Example workflow setup
# .github/workflows/comment-changeset-pr-status.yml
name: Comment changeset status in PRs

on:
  pull_request_target:
    types: [opened, synchronize, reopened]

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
  cancel-in-progress: true

jobs:
  pr-status:
    runs-on: ubuntu-slim
    permissions:
      contents: read # to check out files in the repo
    outputs:
      commentBody: ${{ steps.pr-status.outputs.commentBody }}
    steps:
      - name: Check out repo
        uses: actions/checkout@v6

      - name: Generate status
        id: pr-status
        uses: changesets/action/pr-status@v1

  comment:
    needs: pr-status
    runs-on: ubuntu-slim
    permissions:
      pull-requests: write # to create and update comments on PRs
    steps:
      - name: Comment on PR
        uses: mshick/add-pr-comment@v3
        with:
          message-id: changeset-pr-status
          message: ${{ needs.pr-status.outputs.commentBody }}

See this action ... in action: bluwy/changesets-playground#1 (feel free to send PRs from forks for testing)

This actions focuses only on generating the comment, and defer the commenting to other actions. This is because we want to use reduced permissions for generating the comment to prevent risks of executing untrusted code and accessing the elevated github token. When changesets generate a release plan, we cannot guarantee in the future it will not execute code because of hooks/plugins or such.


When you have this workflow in your repo, you should disable the changeset bot for the repo so messages don't get reported twice. For this action, you should get the exact behaviour and messages from a bot. I didn't change the message for now.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lachlancollins and mihkeleidast reacted with rocket emoji
All reactions
  • 🚀 2 reactions
bluwy added 4 commits May 18, 2026 22:22
@bluwy
Initial implementation
0f2b7f6
@bluwy
Fix
0c33f17
@bluwy
fix
513d3b1
@bluwy
fix
bdfd7f0
@changeset-bot

changeset-bot Bot commented May 18, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 688058f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@changesets/action Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bluwy added 2 commits May 19, 2026 10:14
@bluwy
Make it look nicer
3f05264
@bluwy
Update docs
b3bbf47
@bluwy
bluwy marked this pull request as ready for review May 19, 2026 02:36
Andarist
Andarist reviewed May 19, 2026
View reviewed changes
Comment thread src/pr-status/message.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 19, 2026
View reviewed changes
Comment thread rolldown.config.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 19, 2026
View reviewed changes
Comment thread src/comment-pr-changeset/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 19, 2026
View reviewed changes
Comment thread src/pr-status-comment/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 19, 2026
View reviewed changes
Comment thread comment-pr-changeset/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 19, 2026
View reviewed changes
Comment thread pr-status-comment/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Andarist
Andarist requested a review from emmatown May 19, 2026 06:54
mihkeleidast
mihkeleidast reviewed May 19, 2026
View reviewed changes
Comment thread comment-pr-changeset/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

bluwy added 4 commits May 19, 2026 15:34
@bluwy
Rename to pr-status-comment
b4b967a
@bluwy
Remove outputs
7457ddb
@bluwy
Update path
6057580
@bluwy
update name
8188bb1
Andarist
Andarist reviewed May 19, 2026
View reviewed changes
Comment thread comment-pr-changeset/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Andarist Andarist mentioned this pull request May 24, 2026
add pkg.pr.new #628
Open
Andarist and others added 2 commits May 25, 2026 14:10
@Andarist @bluwy
Checkout PR in a detached worktree (#626)
65ef483
Co-authored-by: bluwy <[email protected]>
@bluwy
Move comment to separate job
7c7f15b
@bluwy bluwy mentioned this pull request May 25, 2026
Test 1 bluwy/changesets-playground#1
Closed
@bluwy
Loosen event requirement
d288cad
@bluwy

bluwy commented May 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

This is now ready again. The action now works slightly differently to prevent token leaks when generating the release plan. See the PR description and the added README for more info. I also renamed it as changesets/action/pr-status instead of pr-status-comment (maybe just check would be cool?)

I was also considering adding a simple comment action so we don't have to recommend a third-party action, but I don't want to widen the scope for now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mihkeleidast
mihkeleidast reviewed May 26, 2026
View reviewed changes
Comment thread pr-status/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

bluwy added 2 commits May 27, 2026 11:25
@bluwy
Merge branch 'main' into comment-pr-changeset
7e0d0f5
@bluwy
Merge branch 'main' into comment-pr-changeset
3f4fd28
@bluwy bluwy mentioned this pull request May 28, 2026
Add simple PR comment sub-action #636
Merged
@bluwy
Update
f6b2ed6
Andarist
Andarist reviewed May 29, 2026
View reviewed changes
Comment thread .changeset/wacky-taxis-sink.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 29, 2026
View reviewed changes
Comment thread pr-status/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 29, 2026
View reviewed changes
Comment thread pr-status/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 29, 2026
View reviewed changes
Comment thread pr-status/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 29, 2026
View reviewed changes
Comment thread pr-status/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 29, 2026
View reviewed changes
Comment thread pr-status/README.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Andarist
Andarist reviewed May 29, 2026
View reviewed changes
Comment thread src/pr-status/index.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

bluwy and others added 3 commits May 29, 2026 15:02
@bluwy @Andarist
Apply suggestions from code review
1b8c3e5
Co-authored-by: Mateusz Burzyński <[email protected]>
@bluwy
Use TLA
142abae
@Andarist
use using
7426107
@Andarist
Andarist force-pushed the comment-pr-changeset branch from 89acb30 to 7426107 Compare May 29, 2026 10:02
Andarist
Andarist previously approved these changes May 29, 2026
View reviewed changes
Comment thread src/pr-status/worktree.test.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@bluwy
Remove test log
688058f
@bluwy
bluwy dismissed Andarist’s stale review via 688058f May 29, 2026 12:04
Andarist
Andarist approved these changes May 29, 2026
View reviewed changes
@bluwy
bluwy added this pull request to the merge queue May 29, 2026
Merged via the queue into main with commit 8795eee May 29, 2026
7 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bluwy
bluwy deleted the comment-pr-changeset branch May 29, 2026 12:28
@github-actions github-actions Bot mentioned this pull request May 29, 2026
Version Packages #637
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Andarist Andarist Andarist approved these changes
@emmatown emmatown Awaiting requested review from emmatown
+1 more reviewer
@mihkeleidast mihkeleidast mihkeleidast left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@bluwy @mihkeleidast @Andarist
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.