Repository navigation
Clarify DO_NOT_TRACK values in CLI telemetry opt-out - #47077
aniruddhaadak80 wants to merge 1 commit into
Conversation
|
Warning This pull request was closed automatically. Please don't raise pull requests against an existing issue that another user has raised until it's been marked with a |
|
Thanks for submitting a PR to the GitHub Docs project! In order to review and merge PRs most efficiently, we require that all PRs grant maintainer edit access before we review them. For information on how to do this, see the documentation. |
How to review these changes 👓Thank you for your contribution. To review these changes, choose one of the following options: A Hubber will need to deploy your changes internally to review. Table of review linksNote: Please update the URL for your staging server or codespace. The table shows the files in the
Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server 🤖 This comment is automatically generated. |
There was a problem hiding this comment.
🟢 Approval recommended
The documentation now explicitly matches the implementation by identifying 1 and true as the only DO_NOT_TRACK values that disable telemetry, with no active review issues remaining.
No open issues 🎉
What changed in this PR
Clarifies the accepted DO_NOT_TRACK values in the GitHub CLI telemetry opt-out documentation, aligning the guidance with the CLI implementation.
Changes:
- States that
DO_NOT_TRACKdisables telemetry only when set to1ortrue. - Clarifies that other
DO_NOT_TRACKvalues have no effect.
| File | Description |
|---|---|
| content/github-cli/github-cli/github-cli-telemetry.md | Updates the telemetry opt-out guidance with the accepted DO_NOT_TRACK values. |
Review effort: Lite
Why:
Closes: #45957
What's being changed (if available, include any code snippets, screenshots, or gifs):
In "How to opt out" on the GitHub CLI telemetry page, the text previously said any falsy value works for
GH_TELEMETRYand then introducedDO_NOT_TRACKwithout explaining its accepted values. This adds one sentence clarifying thatDO_NOT_TRACKdisables telemetry only when set to1ortrue, and that other values have no effect. This matches the implementation incli/cli(internal/telemetry/telemetry.go), which checksenvVal == "1" || envVal == "true".Verification
npm ci --no-audit --no-fundin the isolated worktree: succeeded (added 1044 packages in 31m). npm emittedEBADENGINEwarnings because this machine has Node v22.23.2 while the repository requires Node^26.npm run lint-content -- --paths content/github-cli/github-cli/github-cli-telemetry.md: failed under Node v22 withTypeError: RegExp.escape is not a function.npx -y node@26 ./node_modules/tsx/dist/cli.mjs src/content-linter/scripts/lint-content.ts --paths content/github-cli/github-cli/github-cli-telemetry.md→Markdownlint finished in 8.0 s/No errors found.cli/clisource (internal/telemetry/telemetry.go,ParseTelemetryState).Limitations
git pushto the fork failed with HTTP 408 because the fork'smainis 1161 commits behindupstream/main, so the branch and its single-file commit were created directly on the fork with the GitHub REST API. The content is identical to the local commit.AI assistance disclosure
This change and PR body were prepared with AI assistance. The issue, source behavior, and local validation results were checked before submission.
Check off the following: