Docs: replace the real-looking access token in README examples and fix build status help texts

Aperta Adatta ai principianti
#90 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@linuxsuren-fs ci sta già lavorando.

Dal 17/11/2026.

  • #93 di @linuxsuren-fs — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
88/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, markdown
Ambito
cli, documentation

Direzione di ricerca

Inizia da README.md alle righe 39 e 55 e sostituisci entrambi i letterali del token con un segnaposto come $GIT_TOKEN, poi apri cmd/status.go e riformula le descrizioni dei flag alle righe 25-31 da "build token" a "build status" ed elimina il blocco no-op if o.description == "" alla riga 40. Esegui go build ./... e make build per confermare che nulla si rompa. Fatto quando nel README non rimane alcuna stringa simile a una credenziale e status --help si legge correttamente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

documentation good first issue

Background

The README examples contain what looks like a real private GitLab access token:

  • README.md line 39: --token h-zez9CWzyzykbLoS53s
  • README.md line 55: --token h-zez9CWzyzykbLoS53s

Even if the token is already revoked, publishing real-looking credentials is bad practice: scanners flag it, users copy-paste it into their own servers, and it teaches the wrong habit. Documentation should use obvious placeholders, e.g. --token $GIT_TOKEN or <your-token>.

While touching docs, the status command help texts say "build token" where they mean "build status" (cmd/status.go lines 25, 26–28, 31: Build token, such as: pending, success…, Address of the build server, Identity of a build token, The description of a build token), and there is a no-op block at cmd/status.go:40 (if o.description == "" { o.description = "" }) that can simply be deleted.

Technical requirement

Basic Go and Markdown; able to run go build ./....

Expect

  • No credential-like strings in README
  • Help texts read "build status"
  • make build still passes

Potential TODO list

  • Replace both token occurrences in README.md with a placeholder
  • Fix the three "build token" help strings in cmd/status.go
  • Remove the no-op if o.description == "" block
  • Bonus: validate --status values upfront against the supported states instead of letting the provider API reject them
Lingua principale
Go
Stelle
19
Fork
3
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LinuxSuRen/gogit

Tutte le issue di LinuxSuRen/gogit

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.