Skip to content

Conversation

Copy link

Copilot AI commented Nov 12, 2025

The request to prevent pull requests, forks, and commits from other users cannot be implemented through code changes. These are GitHub platform settings.

Required Actions (Manual Configuration)

Repository owner must configure through GitHub web interface at Settings:

  • Disable forking: General → Features → Uncheck "Allow forking"
  • Disable pull requests: General → Features → Uncheck "Pull Requests"
  • Restrict commits: Branches → Add protection rule → "Restrict who can push to matching branches"
  • Alternative: Make repository private (Danger Zone → Change visibility)

No code changes can enforce these restrictions. GitHub's API or web interface must be used directly.

Original prompt

Please make this repo so no one can make pull requests, fork it or any commits or any other changes besides me


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Update repository settings to restrict access Document that repository access restrictions require GitHub settings configuration Nov 12, 2025
Copilot AI requested a review from Ericlein November 12, 2025 12:44
@Ericlein Ericlein closed this Nov 12, 2025
@Ericlein Ericlein deleted the copilot/restrict-repo-access branch November 12, 2025 12:50
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