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

Open Beginner friendly
#90 0 comments 0 reactions 0 assignees View on GitHub

@linuxsuren-fs is already working on this.

Since Nov 17, 2026.

  • #93 by @linuxsuren-fs — open

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
go, markdown
Domain
cli, documentation

Research direction

Start at README.md lines 39 and 55 and swap both token literals for a placeholder such as $GIT_TOKEN, then open cmd/status.go and reword the flag descriptions at lines 25-31 from "build token" to "build status" and delete the no-op if o.description == "" block at line 40. Run go build ./... and make build to confirm nothing breaks. Done when no credential-like string remains in the README and status --help reads correctly.

Written by the indexing model from the issue text.

Description

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
Dominant language
Go
Stars
19
Forks
3
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LinuxSuRen/gogit

All issues in LinuxSuRen/gogit

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.