GitHub App token fallback misses recent issues in large repositories
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- github, github-actions, typescript
Direzione di ricerca
Inizia da Github.matcher() e dal fallback listAll() utilizzato da frog publish. Traccia la ricerca per etichetta, la gestione delle autorizzazioni e il comportamento della paginazione, quindi esegui i quattro scenari di test elencati nell’issue. Il lavoro è completato quando pubblicazioni ripetute deduplicano i report corrispondenti e i marker di occorrenza sia per le destinazioni con etichetta sia per quelle senza etichetta, incluse le issue recenti nei repository di grandi dimensioni.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Expected Behavior
Repeated frog publish runs find an issue created by an earlier run when it has the configured friction label and identical report and occurrence markers.
This should work when an Action-only workflow passes a GitHub App installation token, as documented in Frog's Action-only instructions.
Current Behavior
With a GitHub App installation token, Github.matcher() can treat the repository as unlabelled even when the same token successfully creates an issue with the configured label.
The publish result then includes the repository in unlabelled. The fallback calls listAll(), which requests issues oldest-first and stops after 50 pages of 100. In a repository with more than 5,000 issues, it does not inspect recently created Frog issues. A later publish can therefore create another issue for the same report and occurrence markers.
Possible Solution
Build the label-filtered issue index regardless of repos.get().permissions.push. Reading issues by label does not require permission to apply that label.
Keep the permission result for warning whether labels are expected to stick. If the labelled lookup misses, scan the unlabelled fallback newest-first so its bounded lookup includes recent reports.
Tests should cover:
- a token whose repository response does not indicate push permission while a matching labelled issue exists;
- a recent matching issue outside the oldest 5,000 repository issues;
- a destination where labels cannot be applied and the unlabelled fallback is required;
- report and occurrence marker deduplication across these paths.
Minimal Reproducible Example
- Use Frog 1.1.0 with a GitHub App installation token in a repository containing more than 5,000 issues.
- Configure
issue-authorfor the App bot and publish one unlinked entry. - Confirm that the issue has the configured label while the publish result reports the destination as unlabelled.
- Run
frog publishagain before merging the generatedissue:link. - Observe a second issue with the same report and occurrence markers.
The workflow follows Frog's documented custom-token configuration: it passes the installation token as the action's token, sets issue-author to the App bot login, and uses the same login in the issue-event guard. actions/create-github-app-token inherits the installation permissions by default.
Context
This can repeatedly file the same friction entry while the generated frog/sync pull request waits to merge. Restricting workflow triggers reduces the window but does not make publishing idempotent.
- Lingua principale
- TypeScript
- Stelle
- 267
- Fork
- 11
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wevm/frog
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
feat: allow local log entries to select an issue formForse già presa @emmajam l’ha presa 71 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
Issue simili
-
documentation good first issue
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
sujithputta02/Esapay#13 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ehmpathy/rhachet-roles-bhuild#468 ·
I maintainer di solito rispondono entro 1 giorno
-
Share dialog: the address book's contact count reads "1 contacts" (no singular form in any language)Forse già presa @chibenwa l’ha presa oggi. Apertaai-driven-qa bug claude Cosmetic
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
linagora/twake-contacts-frontend#271 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
factory-active task-identify-harness-labels-done task-identify-issue-type-done
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
vercel/ai#23435 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Koenkk/zigbee2mqtt#33402 ·
I maintainer di solito rispondono entro 1 giorno