fix(github): retry label and assignee writes on stale installation tokens#6229
fix(github): retry label and assignee writes on stale installation tokens#6229bohdansolovie wants to merge 1 commit into
Conversation
|
Caution 🛑 LoopOver review result - fixes requiredReview updated: 2026-07-15 23:54:34 UTC
Review summary Nits — 3 non-blocking
CI checks failing
Flagged checks (non-blocking)
Decision drivers
Context & advisory signals — never blocks the verdict
Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6229 +/- ##
==========================================
- Coverage 95.35% 86.64% -8.72%
==========================================
Files 598 598
Lines 47127 47127
Branches 14994 14994
==========================================
- Hits 44940 40834 -4106
- Misses 1463 4910 +3447
- Partials 724 1383 +659
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…kens ensurePullRequestLabel, removePullRequestLabel, and ensurePullRequestAssignee now use withInstallationTokenRetry so a 401 (or scope 403) invalidates the cached token and retries once — matching the other GitHub-write helpers. Closes JSONbored#6191 Co-authored-by: Cursor <cursoragent@cursor.com>
|
🚨 Contributor flagged. Click here for more info: Superagent Dashboard |
bea0c6b to
195c79a
Compare
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
1 similar comment
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
LoopOver is closing this pull request on the maintainer's behalf (CI is failing (validate, codecov/patch, validate-tests (1))). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
ensurePullRequestLabel,removePullRequestLabel, andensurePullRequestAssigneeinwithInstallationTokenRetry, matchingpostPullRequestComment,closePullRequest, and the other GitHub-write helpers.#6191).Closes #6191
Scope
src/github/labels.ts,src/github/assignees.ts, matching unit tests)withInstallationTokenRetryhelper — no new retry semantics invented hereValidation
github-labels.test.ts,github-assignees.test.ts)#6191Safety
{ applied: false }without inventing successMade with Cursor