Skip to main content

Manage a GitHub Organization, its teams, repository permissions, and more

Project description

GitHub Organization Manager

Test suites REUSE status The latest version of GitHub Org Manager can be found on PyPI. Information on what versions of Python GitHub Org Manager supports can be found on PyPI.

A lightweight tool that helps with managing a GitHub organization, its members, teams, repository permissions and more.

The basic principle: all settings reside in YAML configuration files which will be made effective during a run of this tool.

Features

  • Manage GitHub teams and their members and maintainers
  • Support of sub-teams
  • Manage teams' permissions on organizations' repositories
  • Invite members to the organization if they aren't part of it yet
  • Warn about unmanaged teams
  • Warn about organization members who are not part of any team

Are you missing a feature? Please check whether it's already posted as an issue, and create one of this isn't the case.

Install

Dependencies: Python 3.10 or newer

To install: pip3 install github-org-manager

You may also want to consider using helpers such as pipx to avoid a dependency mess on your system.

Afterwards, the tool is executable with the command gh-org-mgr. The --help flag informs you about the required and available commands.

Configuration

Inside config/example, you can find an example configuration that shall help you to understand the structure:

  • app.yaml: Configuration necessary to run this tool
  • org.yaml: Organization-wide configuration
  • teams/*.yaml: Configuration concerning the teams of your organization.

You may also be interested in the live configuration of the OpenRail Association's organization.

Run the program

You can execute the program using the command gh-org-mgr. gh-org-mgr --help shows all available arguments and options.

Some examples:

  • gh-org-mgr -c myorgconf: synchronize the settings of the GitHub organization with your local configuration in the given configuration path (myorgconf). This may create new teams, remove/add members, and change permissions.
  • gh-org-mgr -c myorgconf --dry: as above, but do not make any modification. Perfect for testing your local configuration and see its potential effects.
  • gh-org-mgr -c myorgconf --debug: the first example, but show full debugging information.

License

The content of this repository is licensed under the Apache 2.0 license.

There may be components under different, but compatible licenses or from different copyright holders. The project is REUSE compliant which makes these portions transparent. You will find all used licenses in the LICENSES directory.

The project is has been started by the OpenRail Association. You are welcome to contribute!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github_org_manager-0.2.1.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

github_org_manager-0.2.1-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file github_org_manager-0.2.1.tar.gz.

File metadata

  • Download URL: github_org_manager-0.2.1.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.1 Linux/6.5.0-1018-azure

File hashes

Hashes for github_org_manager-0.2.1.tar.gz
Algorithm Hash digest
SHA256 532fbea7343f8e4b630f05409914bbecbb56d2ff288cc2c987bd21b016b67f8f
MD5 7a0420fb1cb5be54ae1241be77a34e86
BLAKE2b-256 ca6b3e8f16a8b272633812cade603f0b82b721f8d1930d5bff4b59501b2edda0

See more details on using hashes here.

File details

Details for the file github_org_manager-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for github_org_manager-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bcee90a05a7dd379f7a043bfedfc5cc1c4468ec50fd21e96505f50208f993132
MD5 e56f5b2a73a321ce9317dfb079fb87a5
BLAKE2b-256 5cb7406fd9a7a00a519078fd4c5a4b10be9dba7649d2eb39ca04e2fa2cc7a662

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page