mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-01 11:42:06 +00:00
[feat] Auto-remove claude-review label after CI review completes (#5983)
## Summary Automatically removes the `claude-review` label after the Claude PR review workflow completes, regardless of success or failure. ## Changes - Added a cleanup step to `.github/workflows/claude-pr-review.yml` that removes the label using `gh pr edit --remove-label` - Uses `if: always()` to ensure the label is removed even if the review fails - This prevents label accumulation and allows the label to be re-applied for additional reviews ## Benefits - Cleaner PR label management - Labels can be re-applied to trigger additional reviews without manual cleanup - Reduces noise in the PR interface ## Test Plan - Apply the `claude-review` label to this PR to verify the workflow removes it automatically after completion ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5983-feat-Auto-remove-claude-review-label-after-CI-review-completes-2866d73d365081da929cd393996010e1) by [Unito](https://www.unito.io)
This commit is contained in:
6
.github/workflows/claude-pr-review.yml
vendored
6
.github/workflows/claude-pr-review.yml
vendored
@@ -86,3 +86,9 @@ jobs:
|
||||
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
|
||||
- name: Remove claude-review label
|
||||
if: always()
|
||||
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "claude-review"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user