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
> Tip: To avoid specifying `-U` and `-t` every time you refer to a repository, you can use the config file to save the details of it. See [Specifying a repository](#specifying-a-repository).
31
31
32
-
#### Copy labels from one repository to another
32
+
#### Copy labels from repoA to repoB
33
33
34
34
```sh
35
35
gitlab-cli label copy -r <NAME><GROUP>/<REPO>
36
36
```
37
37
38
38
> Tip: The above command copies labels between repositories on the same GitLab instance. To copy from/to a different GitLab instance, use the config file as explained in [Specifying a repository](#specifying-a-repository).
39
39
40
+
##### Example
41
+
42
+
If both repositories are added to the [config file](#specifying-a-repository) as `repoA` and `repoB`, you can copy labels from repoA to repoB as follows:
43
+
44
+
```sh
45
+
gitlab-cli label copy -r repoB repoA
46
+
```
47
+
40
48
#### Update labels that match a regex
41
49
42
50
```sh
@@ -113,6 +121,11 @@ But there's no need to manually edit this file. Instead use the config commands
113
121
114
122
You'll need a [Go dev environment](https://golang.org/doc/install).
115
123
124
+
```sh
125
+
git clone https://github.com/xanzy/go-gitlab
126
+
git submodule --init update
127
+
```
128
+
116
129
### Build
117
130
118
131
```sh
@@ -135,14 +148,14 @@ You can spin up a GitLab instance using [Docker](https://www.docker.com/):
135
148
docker pull gitlab/gitlab-ce
136
149
docker run -d --name gitlab -p 8055:80 gitlab/gitlab-ce
0 commit comments