popomore / github-labels

Add github labels automatically
177 stars 20 forks source link

Labels not created #28

Open Berkmann18 opened 6 years ago

Berkmann18 commented 6 years ago

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 commented 5 years ago

@popomore ?

Frijol commented 5 years ago

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 commented 5 years ago

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

Berkmann18 commented 5 years ago

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

Frijol commented 5 years ago

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