feat: add gh-pr-release-tagger task to label released PRs#171
Draft
comfy-pr-bot wants to merge 3 commits intomainfrom
Draft
feat: add gh-pr-release-tagger task to label released PRs#171comfy-pr-bot wants to merge 3 commits intomainfrom
comfy-pr-bot wants to merge 3 commits intomainfrom
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Adds a new GitHub task that monitors core/1.* and cloud/1.* branches in ComfyUI_frontend and automatically adds 'released:core' or 'released:cloud' labels to PRs included in each release. - Lists release branches matching the configured patterns - Fetches releases and groups by branch, filtering by processSince - Compares consecutive releases to find included commits - Labels associated PRs with the appropriate branch prefix label - Ensures labels exist in repo before applying (creates if missing) - Tracks processed releases in MongoDB GithubPRReleaseTaggerTask collection - Registers in run-gh-tasks.ts for 5-minute scheduled execution Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
7b94b71 to
ad0fdff
Compare
… confirmed deployments - `released:core` = available in latest desktop app (reads pinned version from Comfy-Org/desktop) - `released:cloud` = live on cloud.comfy.org (reads deployed SHA from Comfy-Org/cloud ArgoCD overlay) - Labels original PRs on main (not backport PRs) by tracing "Backport of #XXXX" references - Supports both core (GitHub releases) and cloud (commit SHA) deployment models - Idempotent: skips already-processed deployed refs and already-labeled PRs Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
de01a03 to
73a21c8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
app/tasks/gh-pr-release-tagger/index.ts- new task that monitorscore/1.*andcloud/1.*branches in ComfyUI_frontend and automatically labels PRs included in each release withreleased:coreorreleased:cloudapp/tasks/gh-pr-release-tagger/index.spec.ts- comprehensive test suite covering config validation, branch grouping, label operations, filtering logic, and error handlingapp/tasks/run-gh-tasks.tsfor 5-minute scheduled executionHow it works
core/1.*andcloud/1.*patterns viaghPageFlowtarget_commitishto match release branches andprocessSincecutoffmaxReleasesToCheckper branchgh.repos.compareCommitsto get all commits in the releasegh.repos.listPullRequestsAssociatedWithCommitto find associated PRsreleased:core/released:cloudlabel exists in the repo (creates it with a blue color if not)ghclient (write operations)GithubPRReleaseTaggerTask(withreleaseUrlas unique index)Test plan
core/1.*,cloud/1.*), label generation, processSince datetaskStatusvalues, emptylabeledPRstarget_commitish, ascending sort,maxReleasesToChecklimitingreleaseUrluniqueness, expected index fields🤖 Generated with Claude Code