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).
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| github_tabs-0.1.0.tar.gz | 4.6 kB | Without provenance | Details for github_tabs-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| github_tabs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for github_tabs-0.1.0-py3-none-any.whl |
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
|
Security for github-tabs 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.