You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"This endpoint adds an already existing label (global or project specific) to the repository.",
16
+
&repoLabelAdd)
17
+
utils.Parser.AddCommand("repo_labels_get",
18
+
"Get labels of a repository.",
19
+
"This endpoint gets labels of a repository specified by the repo_name. NOTE: This API gets '401 Unauthorized' all the time, even when logging in as admin user.",
20
+
&repoLabelsGet)
21
+
utils.Parser.AddCommand("repo_desp_update",
22
+
"Update description of the repository.",
23
+
"This endpoint is used to update description of the repository.",
24
+
&repoUpdate)
25
+
utils.Parser.AddCommand("repo_del",
26
+
"Delete a repository by repo_name.",
27
+
"This endpoint let user delete a repository by repo_name.",
28
+
&repoDel)
11
29
utils.Parser.AddCommand("repos_list",
12
30
"Get repositories accompany with relevant project and repo name.",
13
31
"This endpoint let user search repositories accompanying with relevant project ID and repo name.",
@@ -16,15 +34,170 @@ func init() {
16
34
"Get public repositories which are accessed most.",
17
35
"This endpoint aims to let users see the most popular public repositories",
18
36
&reposTop)
19
-
utils.Parser.AddCommand("repo_del",
20
-
"Delete a repository by repo_name.",
21
-
"This endpoint let user delete a repository by repo_name.",
22
-
&repodel)
37
+
}
38
+
39
+
typerepositoryLabelAddstruct {
40
+
RepoNamestring`short:"n" long:"repo_name" description:"(REQUIRED) The name of repository that you want to add a label." required:"yes"`
41
+
IDint`short:"i" long:"id" description:"(REQUIRED) The ID of the already existing label." required:"yes" json:"id"`
42
+
Namestring`long:"name" description:"The name of this label." default:"" json:"name"`
43
+
Descriptionstring`long:"description" description:"The description of this label." default:"" json:"description"`
44
+
Colorstring`long:"color" description:"The color code of this label. (e.g. Format: #A9B6BE)" default:"" json:"color"`
45
+
Scopestring`long:"scope" description:"The scope of this label. ('p' indicats project scope, 'g' indicates global scope)" default:"" json:"scope"`
46
+
ProjectIDint`long:"project_id" description:"Which project (id) this label belongs to when created. ('0' indicates global label, others indicate specific project)" default:"" json:"project_id"`
47
+
CreationTimestring`long:"creation_time" description:"The creation time of this label. default time.Now()" default:"" json:"creation_time"`
48
+
UpdateTimestring`long:"update_time" description:"The update time of this label. default time.Now()" default:"" json:"update_time"`
0 commit comments