Skip to content

Skip release PR in PR status workflow example - #2240

Open
marcalexiei wants to merge 2 commits into
changesets:mainfrom
marcalexiei:docs/pr-status-skip-release-pr
Open

Skip release PR in PR status workflow example#2240
marcalexiei wants to merge 2 commits into
changesets:mainfrom
marcalexiei:docs/pr-status-skip-release-pr

Conversation

@marcalexiei

Copy link
Copy Markdown
Contributor

The example comments on every pull request, including the release PR where changeset version has consumed all changesets, so the comment always reports that none is present.

This adds an if condition to the pr-status job skipping changeset-release/*
branches, matching what the Changesets GitHub Bot does internally.

@changeset-bot

changeset-bot Bot commented Aug 11, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 847412d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@netlify

netlify Bot commented Aug 11, 2026

Copy link
Copy Markdown

Deploy Preview for changesets ready!

Name Link
🔨 Latest commit 847412d
🔍 Latest deploy log https://app.netlify.com/projects/changesets/deploys/6a7b82be2ab22b000719a27c
😎 Deploy Preview https://deploy-preview-2240--changesets.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Andarist
Andarist requested a review from bluwy August 11, 2026 18:43
@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.53%. Comparing base (76dad93) to head (847412d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2240   +/-   ##
=======================================
  Coverage   84.53%   84.53%           
=======================================
  Files          80       80           
  Lines        3168     3168           
  Branches      892      890    -2     
=======================================
  Hits         2678     2678           
  Misses        433      433           
  Partials       57       57           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@beeequeue beeequeue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

very nice improvement!

@beeequeue beeequeue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should we also add this to the pr-comment step?

jobs:
pr-status:
# recommended: skip the release pull request, as it never has changesets
if: ${{ !startsWith(github.event.pull_request.head.ref, 'changeset-release/') }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
if: ${{ !startsWith(github.event.pull_request.head.ref, 'changeset-release/') }}
if: ${{ !startsWith(github.head_ref, 'changeset-release/') }}

slightly shorter version

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Applied the github.head_ref suggestion, thanks.

For pr-comment: it is not needed.
It's a separate job with needs: pr-status, and GitHub skips dependents when a needs job is skipped (unless they override with always()).

Also combined the if in the pull_request note above the snippet.

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