Skip to main content

Create and enforce standard rules on GitHub repositories managed by flox.

Project description

GitHub integration for flox

flox automation for GitHub repository managmenet

Exposed variables

  • github_clone_url - http checkout URL
  • github_url - public URL of the repository
  • github_ssh_url - checkout URL used for git+ssh protocol
  • github_repository - repository object as fetched from GitHub API
  • github_empty - True/False flag
  • git_repository - authenticated URL which can be used for all write operations

Installation

$ flox plugin install flox-github

or

$ pip install flox-github

Configuration

$ flox config --plugin github --scope=user

ℹ Starting configuration of github for 'user' scope
  GitHub default organization [getflox]:
  Default branch [develop]:
  Enable vulnerability alerts [Y/n]:
  Enable automated security fixes [Y/n]:
ℹ 'List of protected branches' configuration is accepting multiple values, each in new line, enter empty value to end input, '-' to delete value
  List of protected branches [master]:
  Create repository as private [Y/n]:
  Enable projects [Y/n]:
  Enable issue management [Y/n]:
  Enable wiki [Y/n]:
ℹ 'Collaborators with "pull" permission' configuration is accepting multiple values, each in new line, enter empty value to end input, '-' to delete value
ℹ 'Collaborators with "push" permission' configuration is accepting multiple values, each in new line, enter empty value to end input, '-' to delete value
ℹ 'Collaborators with "admin" permission' configuration is accepting multiple values, each in new line, enter empty value to end input, '-' to delete value

New configuration:

 Key                                    Old value  New value
─────────────────────────────────────────────────────────────
 Collaborators with "pull" permission   {}         -
 Collaborators with "push" permission   {}         -
 Collaborators with "admin" permission  {}         -

Save plugin settings? [y/N]: y
ℹ Configuration saved: /Users/user/.flox/settings.toml
  GitHub Access Token [xxx]: ------
 
New configuration:

 Key                  Old value                                  New value
──────────────────────────────────────────────────────────────────────────────────────────────────────────
 GitHub Access Token  -----                                      --------

Save plugin settings? [y/N]: y
ℹ Updated 1 secrets

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

flox-github-0.2.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

flox_github-0.2.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file flox-github-0.2.1.tar.gz.

File metadata

  • Download URL: flox-github-0.2.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.12 Linux/5.11.0-1025-azure

File hashes

Hashes for flox-github-0.2.1.tar.gz
Algorithm Hash digest
SHA256 517c90955deee53cad2a13d241f62f36edad914908a10bffd3b1f8e8d1432652
MD5 d4ce8657b7fb1d25d0024f3fe20fdd36
BLAKE2b-256 2a4e5f39095b6f19eb2b55b40cca97321793b94fab8057acc839f3babd035d77

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flox_github-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.0 CPython/3.8.12 Linux/5.11.0-1025-azure

File hashes

Hashes for flox_github-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fde87106ae7396195418073ac22931dd6c8c2abbe48c4204cef1ded15470d191
MD5 a237e94bb4c6d2f58dad89abc3b67061
BLAKE2b-256 031186a65ce7e22911c14483d508aa4681e23b4b2127414a261bb2e491755d17

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