Skip to content

fix: skip backport checks for releases not from main branch#200

Open
comfy-pr-bot wants to merge 1 commit intomainfrom
fix/backport-checker-skip-non-main-releases
Open

fix: skip backport checks for releases not from main branch#200
comfy-pr-bot wants to merge 1 commit intomainfrom
fix/backport-checker-skip-non-main-releases

Conversation

@comfy-pr-bot
Copy link
Copy Markdown
Member

Problem

The backport checker was running for ALL releases from ComfyUI_frontend, including patch releases made from RC branches like core/1.42. Christian Byrne pointed out that we do NOT need to check backports when a release is NOT made from the main branch — releases from RC branches already have their commits on that branch, so there's nothing to backport.

Changes

  • Added mainBranch: 'main' config option so the filter is configurable
  • Added a filter in the sflow pipeline to skip releases where target_commitish !== config.mainBranch
  • Added a logger.debug message when skipping non-main releases (shows the tag name and actual target branch)
  • Updated the JSDoc comment (step 2 in HOW IT WORKS) to document this new filtering step

How it works

GitHub releases have a target_commitish field indicating the branch/commit the release was created from:

  • Main branch releases: target_commitish === 'main'
  • RC branch releases (e.g. v1.42.9): target_commitish === 'core/1.42'

The new filter skips any release where target_commitish doesn't match config.mainBranch.

Testing

Run with --dry-run against the frontend repo and verify that releases like v1.42.9 (from core/1.42) are skipped with a debug log, while main branch releases continue to be processed normally.

Releases made from RC branches (like core/1.42) already have their
commits on that branch — there is nothing to backport. Add a
target_commitish filter so the checker only processes releases whose
source branch matches config.mainBranch ('main').

- Add mainBranch config option (default: 'main')
- Filter out non-main releases with a debug log message
- Update JSDoc to document the new filtering step
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comfy-pr Ready Ready Preview, Comment Apr 13, 2026 0:38am

Request Review

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