Skip to content

masa0902dev/prevent-public-repos-2025

Repository files navigation

prevent-public-repos-2025

🔥Now, You Can Use This Github App!🔥

English | 日本語

This is a GitHub App that monitors the creation of public repositories and changes from private to public within a GitHub Organization.
It was created as a replacement for Prevent Public Repos by issc29, which is no longer functioning.

Features

Actions Monitored:

  • Creation of public repositories
  • Changes from private to public

How This GitHub App Works:

  • Creates an issue in both the affected repository and the org-settings repository.

Rate Limit:

  • Currently, the monitored actions are limited to a maximum of 50 times per hour.

※ Currently, the functionality to apply configurations from `.github/prevent-public-repos.yml` in the `org-settings` repository is not implemented.

Installation in an Organization

  1. Install this GitHub App in your Organization
  2. Create a repository named org-settings and add a .github/prevent-public-repos.yml file inside it. (Currently, this configuration file is not utilized.)
  3. To test its functionality, try creating a public repository. An issue should be created in both that repository and the org-settings repository.

Contribution

Contributions are welcome!

  • There are no strict rules for PRs or issues. Please follow general standards.
  • Contributions to the TODO section below would be greatly appreciated.
  • Currently, merging requires approval from the CODEOWNER (masa0902dev).

TODO

  • Implement the functionality to apply settings from .github/prevent-public-repos.yml in the org-settings repository.

  • Implement automatic reversion of public repositories to private (currently, only issue creation is supported).
  • Add the ability to register repositories that should not be monitored for public status changes (currently, all repositories are monitored).
  • Allow customization of issue title and body (currently, values from constants.ts are used).
  • Implement email notification functionality for specified users.

Special Thanks

※ This GitHub App prevent-public-repos-2025 has no dependency on Prevent Public Repos by issc29, as no code has been reused. If this GitHub App stops working, please open an issue in this repository.

About

Let's prevent organization public repos even in 2025 with a free plan!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published