File tree 1 file changed +16
-3
lines changed
1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ yarn global add ghlabels
25
25
26
26
### Basic usage
27
27
28
- You can provide options as arguments or leave then blank and they will be asked .
28
+ You can provide options as arguments or leave then blank and they will be prompted .
29
29
30
30
``` sh
31
31
ghlabels --owner foo --repo bar --token foobar --configFile ./path/somefile
@@ -36,15 +36,21 @@ Note: As an alternative you can provide options as enviroment variables (e.g. GI
36
36
### Copy from another repo
37
37
38
38
``` sh
39
- ghlabels --sourceOwner seegno --sourceRepo github-labels --targetOwner foo --targetRepo bar --token foobar
39
+ ghlabels copy --sourceOwner seegno --sourceRepo github-labels --targetOwner foo --targetRepo bar --token foobar
40
+ ```
41
+
42
+ ### List
43
+
44
+ ``` sh
45
+ ghlabels list --owner seegno --repo github-labels
40
46
```
41
47
42
48
### Client
43
49
44
50
You can also import ghlabels client and use it as a module:
45
51
46
52
``` js
47
- import { copyLabelsFromRepo , updateLabels } from ' ghlabels' ;
53
+ import { copyLabelsFromRepo , listLabels , updateLabels } from ' ghlabels' ;
48
54
49
55
// Example of copying labels from a source repo.
50
56
copyLabelsFromRepo ({
@@ -53,6 +59,13 @@ copyLabelsFromRepo({
53
59
token: ' foobar'
54
60
});
55
61
62
+ // Example of listing all labels from a repo.
63
+ listLabels ({
64
+ owner: ' seegno' ,
65
+ repo: ' github-labels' ,
66
+ token: ' foobar'
67
+ });
68
+
56
69
// Example of updating all labels from a repo.
57
70
updateLabels ({
58
71
sourceOwner: ' seegno' ,
You can’t perform that action at this time.
0 commit comments