GitHub Tabs CLI
A command-line tool to enable GitHub repository tabs (e.g., Discussions, Wiki) and buttons (e.g., Sponsorships) via the GitHub API.
Features
- Enable Tabs: Discussions, Wiki, Issues, Projects, Pages.
- Enable Buttons: Sponsorships (automatically creates
.github/FUNDING.ymlif missing), Template mode, Forking. - Merge Settings: Squash merge, Rebase merge, Auto-merge.
- Auto-Detection: Automatically detects repository owner and name from the current git directory.
- Smart Defaults: Fetches the authenticated user from the token if no username is provided.
Installation
You can install the tool locally from the source:
pip install .
Usage
Once installed, you can run the tool using the github-tabs command.
Configuration
Create a .env file in your project root or set an environment variable:
ADMIN_TOKEN=your_github_personal_access_token
Examples
Enable Discussions:
github-tabs Discussions
Enable Sponsorships (and auto-create FUNDING.yml):
github-tabs Sponsorships
Enable Wiki for a specific repository:
github-tabs Wiki username repo-name
Enable Auto-Merge:
github-tabs auto-merge
Options
github-tabs [-h] [--token TOKEN] tabname [username] [repo]
tabname: Name of the tab/button to enable.username(optional): GitHub owner of the repo.repo(optional): Name of the repository.--token(optional): GitHub ADMIN_TOKEN (overrides.env).
Release files for github-tabs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| github_tabs-0.1.0.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| github_tabs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / github_tabs-0.1.0.tar.gz
| Download URL | github_tabs-0.1.0.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9ac98db1e4a940a2feaf994576047423ddc1ef118448d2d0b6ffe2af334482f
|
|
BLAKE2b-256 checksum How to use checksums |
8acc17c7fa5ac8363c519170d6721eb565d096d290bc1cf309cdb67b9e16974e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / github_tabs-0.1.0-py3-none-any.whl
| Download URL | github_tabs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
090d8e06f6b617f3e09abe5654f45986db68a49bf10f1374d758fde131e5de00
|
|
BLAKE2b-256 checksum How to use checksums |
7c39631d42aa2203778ba9ee4d4cbec364accd588bbbc65384eabcea92657ac7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|