Commit a8c44eb
committed
ci(auto-sync): pin gh CLI to GITHUB_REPOSITORY via GH_REPO
The conflict-case path runs 'git checkout -B ${PR_BRANCH} upstream/main'
which sets the new branch's upstream-tracking to the upstream remote
(router-for-me/CLIProxyAPI). The gh CLI then infers the current repo
from that tracking and targets upstream — leading to:
HTTP 403: Resource not accessible by integration
(https://api.github.com/repos/router-for-me/CLIProxyAPI/labels)
could not add label: 'auto-sync' not found
Setting GH_REPO at the step level pins every gh invocation to this
repository regardless of git remote state.1 parent 292d598 commit a8c44eb
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
0 commit comments