Skip to content

Clarify DO_NOT_TRACK values in CLI telemetry opt-out - #47077

Closed
aniruddhaadak80 wants to merge 1 commit into
github:mainfrom
aniruddhaadak80:fix/copilot-do-not-track
Closed

aniruddhaadak80 wants to merge 1 commit into
github:mainfrom
aniruddhaadak80:fix/copilot-do-not-track

Conversation

@aniruddhaadak80

Copy link
Copy Markdown
Contributor

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_TELEMETRY and then introduced DO_NOT_TRACK without explaining its accepted values. This adds one sentence clarifying that DO_NOT_TRACK disables telemetry only when set to 1 or true, and that other values have no effect. This matches the implementation in cli/cli (internal/telemetry/telemetry.go), which checks envVal == "1" || envVal == "true".

Verification

  • npm ci --no-audit --no-fund in the isolated worktree: succeeded (added 1044 packages in 31m). npm emitted EBADENGINE warnings 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 with TypeError: RegExp.escape is not a function.
  • Re-ran the same linter with a locally fetched Node v26.13.1: 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.
  • Confirmed the accepted values against cli/cli source (internal/telemetry/telemetry.go, ParseTelemetryState).

Limitations

  • The full site build and GitHub Actions CI were not run locally.
  • git push to the fork failed with HTTP 408 because the fork's main is 1161 commits behind upstream/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.
  • No subject matter expert review has taken place; wording should be confirmed by a GitHub maintainer.

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:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

Copilot AI lite review requested due to automatic review settings November 26, 2026 15:26
@github-actions

Copy link
Copy Markdown
Contributor

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 help wanted label. We need to properly assess all issues before we can accept community contributions, and determine whether it's something we need to fix internally, or how many articles are affected and what the scope of the fix will be. For now, we're going to close this pull request.

@github-actions github-actions Bot closed this Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added the triage Do not begin working on this issue until triaged by the team label Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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 links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
github-cli/github-cli/github-cli-telemetry.md fpt
ghec
ghes@ 3.23 3.22 3.21 3.20 3.19
fpt
ghec
ghes@ 3.23 3.22 3.21 3.20 3.19

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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_TRACK disables telemetry only when set to 1 or true.
  • Clarifies that other DO_NOT_TRACK values 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify that DO_NOT_TRACK only disables telemetry if 1 or true

2 participants