A CLI tool to enable GitHub repository tabs and buttons via API
Project description
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).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file github_tabs-0.1.0.tar.gz.
File metadata
- Download URL: github_tabs-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9ac98db1e4a940a2feaf994576047423ddc1ef118448d2d0b6ffe2af334482f
|
|
| MD5 |
22901cf33f7aa3154a46b7db819970d5
|
|
| BLAKE2b-256 |
8acc17c7fa5ac8363c519170d6721eb565d096d290bc1cf309cdb67b9e16974e
|
File details
Details for the file github_tabs-0.1.0-py3-none-any.whl.
File metadata
- Download URL: github_tabs-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
090d8e06f6b617f3e09abe5654f45986db68a49bf10f1374d758fde131e5de00
|
|
| MD5 |
6b7b75fa1bf712ce1713490ace5a2f95
|
|
| BLAKE2b-256 |
7c39631d42aa2203778ba9ee4d4cbec364accd588bbbc65384eabcea92657ac7
|