Skip to content

SH script to add labels of the AAAsso to all the managed repositories.

Notifications You must be signed in to change notification settings

AAAsso/default-labels

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Add labels used in the organization to a new repository

SH script to add labels of the AAAsso to all the managed repositories.

preview of default labels under AAAsso organization

How to use it?

Get the file

  • Pull the project on your local environment.

Get a token to be able to use it

The GitHub API needs a token linked to your account to work.

  • In GitHub, go to Your Settings > Developer settings > Personal access tokens.
  • Click on Generate new token.
  • Check admin:repo_hook Full control of repository hooks
  • Click on Generate Token
  • Copy the generated token and save it somewhere if you want to reuse it sometimes (not recommended, I would just keep it in my paperclip)

Run the script

In a terminal.

  • Add execution to the script using chmod +x ./set-github-labels.sh
  • Execute the script ./set-github-labels.sh
  • When it asks your token, paste it. It will not be displayed for security.
  • When it asks you the repository name, enter Organization/Repository (e.G. AAAsso/aaaccueil)

Verify it worked

  • Go to your GitHub repository and check the labels are the new ones

Enjoy!

References

This script is an edition of https://github.com/thisisarray/GitHub-Issues-Process/blob/master/set-github-labels.sh, if you liked it, please go say thanks to the devs and star the repo where this is comming from! 💙

About

SH script to add labels of the AAAsso to all the managed repositories.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages