Skip to content

opt out of AI training per GitHub policy#368

Merged
rpdevmp merged 1 commit intomainfrom
add-ai-opt-out
Mar 11, 2026
Merged

opt out of AI training per GitHub policy#368
rpdevmp merged 1 commit intomainfrom
add-ai-opt-out

Conversation

@rpdevmp
Copy link
Copy Markdown
Contributor

@rpdevmp rpdevmp commented Mar 10, 2026

opt out of AI training per GitHub policy

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 10, 2026

Deploy Preview for docs-ui ready!

Name Link
🔨 Latest commit 386d425
🔍 Latest deploy log https://app.netlify.com/projects/docs-ui/deploys/69b09091369b9b0008ec41c6
😎 Deploy Preview https://deploy-preview-368--docs-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 36 (🔴 down 3 from production)
Accessibility: 93 (no change from production)
Best Practices: 100 (no change from production)
SEO: 89 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 10, 2026

📝 Walkthrough

Walkthrough

This change adds a new configuration file .github/ai-opt-out containing a single line with the property opt-out: true. This is a configuration flag addition with no functional code modifications or control flow changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title directly describes the main change: adding a configuration to opt out of AI training per GitHub policy, which matches the file addition (.github/ai-opt-out).
Description check ✅ Passed The description is related to the changeset, stating the purpose of opting out of AI training per GitHub policy, which aligns with the file addition.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-ai-opt-out

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

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.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b6d1a89d-a884-452b-8b32-9e86bd4f3e2d

📥 Commits

Reviewing files that changed from the base of the PR and between 8bc5f64 and 386d425.

📒 Files selected for processing (1)
  • .github/ai-opt-out

@@ -0,0 +1 @@
opt-out: true
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.

⚠️ Potential issue | 🔴 Critical

🧩 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
  • .copilotignore file 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.

@rpdevmp rpdevmp merged commit 889537e into main Mar 11, 2026
6 checks passed
@rpdevmp rpdevmp deleted the add-ai-opt-out branch March 11, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants