github-labels icon indicating copy to clipboard operation
github-labels copied to clipboard

Labels not created

Open Berkmann18 opened this issue 6 years ago • 5 comments

I tried several options when trying to insert my custom labels to a repo and both failed with the same output (shown below):

>> No permission, enter your username and password:
[?] username: B...
[?] password: *...
Token created!
>> Authorize error

I tried following the example by running:

labels -c labels.json Berkmann18/MyPortfolio

And

labels -c labels.json MyPortfolio

But the message I get is confusing (even when I specify a token with -t [token]) and nothing seems to change on the local copy of the repo or the remote one.

Berkmann18 avatar Aug 07 '18 20:08 Berkmann18

@popomore ?

Berkmann18 avatar Nov 05 '18 11:11 Berkmann18

This isn't documented here but it looks like you need to make a token with write access (https://github.com/settings/tokens) and specify it with the -t flag

Frijol avatar Apr 04 '19 14:04 Frijol

oh looks like this is a dup of https://github.com/popomore/github-labels/issues/25 which also suggests tokens as the answer

Frijol avatar Apr 04 '19 14:04 Frijol

@Frijol I did use a token with write access tho.

Berkmann18 avatar Apr 04 '19 16:04 Berkmann18

oh I figured it out! I also had my token settings wrong. Now it's working when I give the token just public_repo access

Frijol avatar Apr 24 '19 20:04 Frijol