mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6585] [MERGED] fix(ci): keep a refused Claude credential from reddening a pull request #6361
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6361
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6585
Author: @BlindMaster24
Created: 9/17/2026
Status: ✅ Merged
Merged: 9/17/2026
Merged by: @BlindMaster24
Base:
main← Head:fix/claude-no-red-on-refused-credential📝 Commits (2)
88f4c3dfix(ci): keep a refused Claude credential from reddening a PR0415f1afix(ci): stop a refused credential reddening the issue analysis📊 Changes
2 files changed (+33 additions, -2 deletions)
View changed files
📝
.github/workflows/claude-issue-analyst.yml(+17 -1)📝
.github/workflows/claude-pr-review.yml(+16 -1)📄 Description
An expired Claude subscription reddens
Claude PR Reviewon every pull request, and nothing about the pull request is wrong. This fixes that, and the same refusal in the issue analyst.Why it is red
The workflow already knows that an API refusal is not a broken workflow:
Report a review the API refused to runrecognises an exhausted usage window and an overloaded API, says so, and leaves the job green. Its condition issteps.review.outcome == 'failure', because those refusals make the action exit non-zero.A refused credential does not. From run 35187380192:
Run anthropics/claude-code-action@v1Report a review the API refused to runFail if the review posted nothingThe refusal is only in the uploaded transcript:
{"error":"oauth_org_not_allowed"}on the assistant entry, and a result entry with"is_error": true, "api_error_status": 403,Your organization has disabled Claude subscription access for Claude Code. Neither existing branch matches, so the last step sees "posted nothing" and goes red. The same shape is behind all five failures in the last day:35159059540,35184688775,35185722358,35186543654,35187380192.The change
claude-pr-review.yml: a new step,Report a review the credential refused, reads the transcript for that 401/403 result (or anoauth_/authentication_/invalid_api_keyerror), recordsskipped=trueand emits a::warning::.Fail if the review posted nothinggainssteps.refused.outputs.skipped != 'true'. The existing classifier is untouched, so the usage-limit and overload paths behave exactly as before.claude-issue-analyst.yml: the same step and the same clause onFail if the analysis posted no reply. It never runs for a pull request -- its trigger excludes them -- but it failed seven times in the last day for the same reason, and each failure is a notification.Deliberately no comment on the pull request for this cause: the credential is the maintainer's own condition, and a note about it under every contributor's PR is noise. The maintainer sees the yellow annotation on the run instead of a red check.
Verification
429+rate_limit_event: rejected(does not fire, still handled by the old step) and a completed review of 629 entries withis_error: false(does not fire). So only the refused credential changes behaviour..github/:make verifydoes not build or test workflows, so this is inspection plus the transcript evidence above, not a test run.pull_request_targetexecutes the workflow from the base branch, so this takes effect after it is merged, not while it is open.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.