Conversation
✅ Deploy Preview for docs-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📝 WalkthroughWalkthroughThis change adds a new configuration file Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/ai-opt-out:
- Line 1: The .github/ai-opt-out file is invalid and should be removed; delete
the ".github/ai-opt-out" file from the PR and update the PR description/commit
message to remove the incorrect claim that this file opts the repo out of GitHub
AI training, and instead mention the supported options (use .copilotignore,
configure Copilot exclusion in repo/org/enterprise settings, or use
account-level Copilot data controls) so users aren’t misled.
| @@ -0,0 +1 @@ | |||
| opt-out: true | |||
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
Does GitHub have an official AI training opt-out mechanism using a .github/ai-opt-out file?
💡 Result:
No. GitHub does not provide an official AI-training opt-out mechanism via a .github/ai-opt-out file.
What GitHub does officially support (for Copilot behavior) is Copilot content exclusion configured in repository/org/enterprise settings (not via an ai-opt-out file) [1][2], and in some clients you can use a .copilotignore file to prevent certain files from being sent as context to Copilot agents (again, not .github/ai-opt-out) [3]. Additionally, Copilot has account-level controls around collection/usage of prompts and code snippets for “product improvements,” and GitHub documents that (for individual subscribers) data is not used for AI model training by default [4].
Sources: Content exclusion for Copilot [1], excluding content instructions [2], .copilotignore mention [3], Copilot individual policy page (“Model training and improvements”) [4].
Remove .github/ai-opt-out — this mechanism is not supported by GitHub.
GitHub does not provide an official AI-training opt-out mechanism via .github/ai-opt-out. Adding this file will have no effect. GitHub's official features for AI-related controls are:
- Copilot content exclusion configured in repository/org/enterprise settings
.copilotignorefile for excluding specific files from Copilot context- Account-level controls for Copilot data usage
The PR description claims to implement "opt out of AI training per GitHub policy," but no such policy exists. Users could be misled into thinking their repository is opted out when it is not.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/ai-opt-out at line 1, The .github/ai-opt-out file is invalid and
should be removed; delete the ".github/ai-opt-out" file from the PR and update
the PR description/commit message to remove the incorrect claim that this file
opts the repo out of GitHub AI training, and instead mention the supported
options (use .copilotignore, configure Copilot exclusion in repo/org/enterprise
settings, or use account-level Copilot data controls) so users aren’t misled.

opt out of AI training per GitHub policy