Skip to content

General tooling/scripts to keep our projects and repos consistent such as setting up standard labels, issue templates, PR reviews etc..

License

Notifications You must be signed in to change notification settings

yakworks/github-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-tools

General tooling/scripts to keep our projects and repos consistent such as setting up standard labels, issue templates, PR reviews etc..

GitHub Labels

Forked from here https://github.com/Wiredcraft/gh-labels

We wasted a lot of time setting up labels on GitHub every time we create a new repo. We wanted a way to just automate that process, especially since we have a standard list of labels we use for all our projects.

This little Python script prompts you for a GitHub repository (and a GitHub token) and set up the labels for this repo to match what you have in a labels.yml file. This file includes a simple list of label settings;

👀 get a token from https://github.com/settings/tokens and make sure its set in GITHUB_TOKEN environment variable

token: 6fa8b6510.....
deleteLabels: true # removes the github repo labels if not in the list below
repos:
  - yakworks/sandbox
  - yakworks/idea-bank
labels:
  - name: 'Status: On Deck'
    color: 'fbca04'
  - name: 'Status: On Hold'
    color: 'c5def5'
(...)

Install & Run

  1. Get in the label folder. Edit the labels.yml the way you want them.

  2. add env var GH_WRITE_TOKEN to the token from https://github.com/settings/tokens. you will be prompted for it if you don't.

  3. Optional: Create and activate your virtualenv;

     virtualenv venv
     source venv/bin/activate
    
  4. Install dependencies; pip or pip3 install -r requirements.txt

  5. Run it; python create_labels.py

About

General tooling/scripts to keep our projects and repos consistent such as setting up standard labels, issue templates, PR reviews etc..

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published