[Bug] Claims bot ignores a command that isn't on the first line of a comment
I maintainer di solito rispondono entro 2 giorni
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github-actions, javascript, node.js, typescript
Direzione di ricerca
Il bug si trova in parseCommand in scripts/issue-claims.mjs, che legge solo la prima riga non vuota di un commento. Inizia da lì e verifica come la condizione if: del workflow inoltra questi commenti. È completato quando un comando su una riga separata più in basso nel commento viene eseguito, mentre i comandi all'interno di blocchi di codice, commenti HTML, citazioni o a metà frase vengono ignorati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The issue-claims bot only reads a command from the first non-empty line of a comment. If someone writes a note first and puts the command on a later line, the bot ignores the command. The workflow run still succeeds, so nothing shows that the command was skipped.
Where it happened
On #1590, the claimer commented:
Releasing the claim!
/unassign-me
Issue-claims run 44936964684 succeeded but did nothing, and they are still assigned to #1590.
Expected behavior
A line that holds only /assign-me, /unassign-me, /assign @user or /unassign @user runs the command, wherever it is in the comment.
Actual behavior
The command is ignored unless it is the first non-empty line. People have to be told to repost it on a line of its own at the top.
Cause
parseCommand in scripts/issue-claims.mjs only checks the first non-empty line. The workflow's if: already lets these comments through, so only the parser needs to change.
Proposed fix
Read the first line in the comment that holds only a command (same patterns as now). Skip lines inside code fences, HTML comments and quotes, so a pasted example never runs. A command mid-sentence still doesn't count. Part of the claiming workflow in #1669.
- Lingua principale
- TypeScript
- Stelle
- 806
- Fork
- 209
- Merge medio
- 3g 16h
- PR unite (30g)
- 133
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
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 OWASP/cve-lite-cli
-
fix(python): --check-overrides is discarded and the CLI then tells you to use itForse già presa @akshad-exe l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OWASP/cve-lite-cli#1863 · 5 commenti · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug] SPDX SBOM can emit duplicate SPDXID values when a colliding package shares a suffixed IDApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
OWASP/cve-lite-cli#1859 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug] License scan crashes with TypeError when package-lock.json has an object or array license fieldForse già presa @WadekarPrashant l’ha presa oggi. Apertabug parser
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OWASP/cve-lite-cli#1858 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
feat: include --prod-only skipped folders in the multi-folder JSON payloadForse già presa @Skeletor-Pirate l’ha presa 5 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
OWASP/cve-lite-cli#1741 · 9 commenti · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
-
[Bug] fix(remediation): parent upgrade rejected when child range is bumped past exact fix versionForse già presa @coder-Yash886 l’ha presa 8 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OWASP/cve-lite-cli#1720 · 4 commenti ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di OWASP/cve-lite-cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
I maintainer di solito rispondono entro 1 giorno
-
frontend testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
vendrabuck/HERD#1588 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue priority: low
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
art-audio
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100