Skip to content

twelvelabs/gh-repo-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo Config

✨ A GitHub (gh) CLI extension to manage GitHub repository settings via declarative configuration.

Installation

  1. Install the gh CLI - see the installation

    Installation requires a minimum version (2.0.0) of the the GitHub CLI that supports extensions.

  2. Install this extension:

    gh extension install twelvelabs/gh-repo-config

Usage

Navigate to the repo you would like to configure and run:

gh repo-config init

This will generate a number of files in .github/config:

.github/config/
├── branch-protection
│   └── main.json
├── topics.json
└── repo.json

The JSON files are API payloads for the following endpoints:

Edit the default values to your liking. To apply the settings, run:

gh repo-config apply

Note: Your auth token will need to have appropriate access to the repo you are trying to configure. Before filing bugs, please check the following:

Development

git clone git@github.com:twelvelabs/gh-repo-config.git
cd ./gh-repo-config

# Bootstrap for local development
make setup
# Test the extension
make test
# Run the extension w/out installing
make run
# Install the extension
make install

About

A GitHub CLI extension to manage repository settings

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •