You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(verify): publish evidence with gh issue edit so a requested team does not stop it - #1190
verify-attach.yml failed to publish evidence on fix(repo): stop naming SDK versions in the Expo verify skill and publish evidence past a requested team javascript#10489 with GraphQL: Resource not accessible by personal access token (repository.pullRequest.reviewRequests.nodes.0.requestedReviewer). gh pr edit always reads the pull request's review requests, and VERIFY_EVIDENCE_TOKEN cannot read a team that is requested as a reviewer. In this repository CODEOWNERS requests @clerk/team-mobile on some paths, so the evidence of those pull requests could never be published.
The publish script now writes the description with gh issue edit, which reads only the body fields and updates a pull request through updatePullRequest. It takes the same --body-file and --attach flags, in the pinned gh 2.102.0 too.
The alternative was to give the token permission to read the organization's teams. That needs an owner to change the token, and it widens what the token can read.
What to focus on
The new test in verify-attach.test.mjs fails every gh pr call with the error above. It fails on the old script and passes on the new one, so a change back to gh pr edit fails CI.
Testing
node --test .github/scripts/verify-attach.test.mjs: 199 of 199 pass.
GH_DEBUG=api gh issue edit on a pull request sends only id, number, title, body, and url, while gh pr edit also asks for reviewRequests.
The workflow runs only from the default branch, so this change takes effect after merge.
Risk
This touches .github/scripts/ and .github/workflows/, which are in CODEOWNERS. Only the evidence publish job changes.
…does not stop it
gh pr edit reads the pull request's review requests, and the evidence
token cannot read a team requested as a reviewer, as CODEOWNERS requests
one. gh issue edit reads only the body fields.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WtSUsr2bQHRBPVkDbpNPnm
Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.
Before this change, the evidence publishing script used gh pr edit to update the pull request description and file layout. That command can read review requests, including team reviewers that the evidence token cannot access. The script now uses gh issue edit for those updates, and the workflow description and tests reflect the command change. Reviewers should look first at publishStep in .github/scripts/verify-attach.mjs and its tests in .github/scripts/verify-attach.test.mjs.
Walkthrough
The verification evidence publisher now uses gh issue edit instead of gh pr edit to update descriptions and attach files. The workflow description and publishing tests reflect the command change, including a test for a pull-request reviewer permission error.
Changes
Verification evidence publishing
Layer / File(s)
Summary
Switch publishing to gh issue edit .github/scripts/verify-attach.mjs, .github/scripts/verify-attach.test.mjs, .github/workflows/verify-attach.yml, .claude/skills/verify-clerk-android/references/remote.md
Publishing commands, dry-run output, and failure messages now use gh issue edit. The tests check the updated command and successful publication when gh pr edit returns a reviewer permission error. The workflow step and reference description identify gh issue edit as the command used.
clerk/clerk-android#1186: Adds CODEOWNERS entries that request team reviewers for workflow and configuration paths; this PR addresses the resulting reviewer access error when publishing evidence.
Suggested reviewers: wobsoriano, swolfand
Merge Risk: Minimal · up to 7b48f
Evidence publishing can update pull-request descriptions and attach files without reading reviewer requests. No merge-blocking risk remains.
Pre-merge checks: 6 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documenta…
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 6 passed
Check name
Status
Explanation
Title check
The title clearly identifies the main change: using gh issue edit to publish verification evidence when a requested team blocks gh pr edit.
Description check
The description includes all required sections. It explains the cause, implementation, testing, risk, and rollback plan with relevant technical details.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Testing, Risk, And Revert
The PR description includes all three required sections. Testing names the exact test command and reports 199 passing tests. Risk identifies the affected paths and limits the change to the evidence pu…
Device Evidence
The reviewed diff changes four files under .claude/ and .github/. It changes no file under source/api/, source/ui/, or e2e/, so device evidence requirements do not apply.
Full details: Testing, Risk, And Revert
Explanation
The PR description includes all three required sections. Testing names the exact test command and reports 199 passing tests. Risk identifies the affected paths and limits the change to the evidence publish job. How to revert states that a plain revert is sufficient.
Full details: Docstring Coverage
Explanation
Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 2 files. (2 skipped: 2 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
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
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.
What & why
verify-attach.ymlfailed to publish evidence on fix(repo): stop naming SDK versions in the Expo verify skill and publish evidence past a requested team javascript#10489 withGraphQL: Resource not accessible by personal access token (repository.pullRequest.reviewRequests.nodes.0.requestedReviewer).gh pr editalways reads the pull request's review requests, andVERIFY_EVIDENCE_TOKENcannot read a team that is requested as a reviewer. In this repository CODEOWNERS requests@clerk/team-mobileon some paths, so the evidence of those pull requests could never be published.gh issue edit, which reads only the body fields and updates a pull request throughupdatePullRequest. It takes the same--body-fileand--attachflags, in the pinned gh 2.102.0 too.What to focus on
verify-attach.test.mjsfails everygh prcall with the error above. It fails on the old script and passes on the new one, so a change back togh pr editfails CI.Testing
node --test .github/scripts/verify-attach.test.mjs: 199 of 199 pass.GH_DEBUG=api gh issue editon a pull request sends onlyid,number,title,body, andurl, whilegh pr editalso asks forreviewRequests.Risk
.github/scripts/and.github/workflows/, which are in CODEOWNERS. Only the evidence publish job changes.How to revert
Screenshots / video
Generated by Claude Code