Syntax for creating labels in a repo? #368

Closed
opened 2021-06-22 11:03:28 +00:00 by abhi18av · 1 comment

Hi team,

Thanks for this wonderful CLI!

I have been relying on tea more and more for some metrics and recently, I have decided to use tea for updating the labels for the repo. However, after multiple iterations I am still not able to figure out the syntax for this.

tea labels create  --repo test-org/nf-tower-deployment
tea labels create --name tesst --color #70c24a  --repo test-org/nf-tower-deployment
tea labels create -name test -color #70c24a  --repo test-org/nf-tower-deployment
tea labels create --name tesst --color #70c24a
tea labels create name test color #70c24a  --repo test-org/nf-tower-deployment
tea labels create -name test -color #70c24a  --repo test-org/nf-tower-deployment

All of these iterations raise an error regarding -repo, on the other hand if that is not included the CLI asks to include.

Apologies if this is a silly question but I couldn't find any examples regarding this.

Hi team, Thanks for this wonderful CLI! I have been relying on tea more and more for some metrics and recently, I have decided to use `tea` for updating the `labels` for the repo. However, after multiple iterations I am still not able to figure out the syntax for this. ``` tea labels create --repo test-org/nf-tower-deployment tea labels create --name tesst --color #70c24a --repo test-org/nf-tower-deployment tea labels create -name test -color #70c24a --repo test-org/nf-tower-deployment tea labels create --name tesst --color #70c24a tea labels create name test color #70c24a --repo test-org/nf-tower-deployment tea labels create -name test -color #70c24a --repo test-org/nf-tower-deployment ``` All of these iterations raise an error regarding `-repo`, on the other hand if that is not included the CLI asks to include. Apologies if this is a silly question but I couldn't find any examples regarding this.
Member

Oh it looks like the --repo flag is missing from that command, thanks for reporting!
As a workaround, cd into the local repo you want to modify, and then call it like this:

cd myrepo
tea label create --name test --color '#70c24a'

# (or, once this issue is fixed)
tea label create --name test --color '#70c24a' --repo myorg/myrepo

There is also support for creating labels in bulk by reading from a file:

tea labels create --file ./labels

where the file labels is:

#ff00ff test2
#70c24a name of label;description of label
Oh it looks like the `--repo` flag is missing from that command, thanks for reporting! As a workaround, cd into the local repo you want to modify, and then call it like this: ```sh cd myrepo tea label create --name test --color '#70c24a' # (or, once this issue is fixed) tea label create --name test --color '#70c24a' --repo myorg/myrepo ``` There is also support for creating labels in bulk by reading from a file: ``` tea labels create --file ./labels ``` where the file `labels` is: ``` #ff00ff test2 #70c24a name of label;description of label ```
noerw added the
kind/bug
label 2021-06-22 11:39:41 +00:00
noerw added the
kind
question
label 2021-06-22 11:52:55 +00:00
6543 closed this issue 2021-06-22 14:23:10 +00:00
6543 referenced this issue from a commit 2021-06-22 14:23:10 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/tea#368
No description provided.