Skip to content

miniwork-jp/github-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-setup

Two things in here:

  1. template-repo/ — boilerplate pushed to GitHub as miniwork/template-repo (template repository)
  2. new_repo/ — installable CLI (new-repo) to spin up repos from that template

Install

pipx install .

Or into the active virtualenv:

pip install -e .

Requires: gh CLI installed and authenticated (gh auth login).


Usage

# Basic: creates AniruddhaHumane/my-service
new-repo my-service

# Create in miniwork-jp
new-repo team-service --org miniwork-jp

# With options
new-repo ml-pipeline \
  --description "Inference pipeline" \
  --topics ml,python,internal

# Preview without touching GitHub
new-repo experiment-xyz --dry-run

# Public repo, skip branch protection
new-repo my-open-source-thing --public --no-protect

# Full help
new-repo --help

Defaults to --org AniruddhaHumane and --template template-repo. Pass --org miniwork-jp to create the repo and select the template from the org instead.


What new-repo does

Step What happens
1 Creates repo from <selected-owner>/template-repo
2 Applies branch protection on the default branch (PR required, 1 approval, CI must pass, stale reviews dismissed)
3 Enables Dependabot alerts + auto security fixes
4 Sets merge strategy (squash + rebase only), auto-deletes branches, disables wiki/projects
5 Adds topics if --topics specified
6 Creates a standard set of issue labels

Template repo structure

template-repo/
├── README.md
├── LICENSE
├── .gitignore           # Python/ML + Node + secrets
├── .editorconfig
└── .github/
    ├── CODEOWNERS
    ├── CONTRIBUTING.md
    ├── PULL_REQUEST_TEMPLATE.md
    ├── dependabot.yml
    ├── ISSUE_TEMPLATE/
    │   ├── bug_report.md
    │   └── feature_request.md
    └── workflows/
        └── ci.yml       # lint → test → security scan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors