nhooyr / ghlabels Goto Github PK
View Code? Open in Web Editor NEWManage labels on GitHub sanely
License: MIT License
Manage labels on GitHub sanely
License: MIT License
I'm thinking a command like ghrepos
will write to stdout all the repos in the org and then that makes it very easy to chain with ghlabels
.
ghlabels sync <org>/<repo> <org>[/<repo>]
Copy labels from one repo to another org or repo. Will never delete labels except for the default labels, unless they too are in the from repo. For labels that already exist, it will just update them.
Just seems like worse UX. Having a config file doesn't really help much in this case because you still want an initial repository from which to pull labels (unless you're a masochist and want to build the json config yourself) and then you also want to make it easy to edit the labels as well which is super easy to do with a repo on github. Using a config file just adds an extra step to the whole process to sync it. I could go an alternate route with the workflow and let you specify exactly what labels to pull and push (then you could pull from the repository you just made your changes on) but that seems more complicated a workflow than this.
Backups with the config file is a moot point because your github repos should be backed up regularly anyway.
These two are needed because the sync
command doesn't let you delete or rename labels. This should rarely happen anyway.
ghlabels rename lablelBefore labelTo <org>[/<repo>]
ghlabels delete label <org>[/<repo>]
Will finish the implementation in #5
meow meow
Labels with spaces in them, such as status = needs review
won't be deleted, and ghlabels won't report an error because of it's idempotent nature.
Workaround:
set REPO "go/wapi"; ghlabels pull $REPO | jq ".[].name" | xargs -I "%" sh -c "ghlabels delete $REPO \"%\"; echo deleted $REPO:%"
Makes more sense and --defaults
is misleading, it deletes any label with the same name as a default label, even if the color is changed.
my body
See https://www.reddit.com/r/golang/comments/515t2z/adding_a_version_number_to_go_packages_with_go/
Prefer this over ldflags
so go get
works perfectly. Will run on CI master only.
Internal gh wrapper library is hacky with errors.
my body
dsamldasdas
With solid support for versioning and help.
my body
Only useful tests would be integration tests against the github API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.