Skip to content

chp2001/repository-management-bot

Repository files navigation

Repository Management Bot

Description: A bot / script setup that manages repositories organization-wide. As the "bot" is currently a manually run script, it will only take actions when run.

Ideally, the bot would run on a schedule or be triggered by events in the organization, but that is not currently implemented.

The primary (and currently, only) functionality is to enforce templates on existing repositories via automatically generated pull requests.

Example pull request

  • Technology stack:
    • Language: Python
    • Primary Libraries: PyGithub
    • Interface: GitHub CLI, Command Line
  • Status: Alpha (Bare Minimum Functionality)
  • Links:

Dependencies

  • Python 3.8+ (Ideally 3.10+) (from here)
  • PyGithub (from here)
  • GitHub CLI (from here)

Installation & Configuration

View the INSTALL document for detailed instructions on how to install, configure, and get the project running.

Usage

The primary entry point is in the __main__.py file. It can be run with the following command (from the root of the repository):

python -m repository_management_bot [organization_name] [template_repository_name] [--org|-o organization_name] [--repo|-r template_repository_name] [--help|-h]

Known issues

The bot is currently incomplete. Additionally, it can only act through the logged-in user, so it is not suitable for use in a production environment.

Getting involved

To get involved, please see the CONTRIBUTING document.


Open source licensing info

  1. LICENSE

Credits and references

  1. Dependabot (for inspiration)

About

Prototyping methods for managing repositories automatically

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages