File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 23
23
) ;
24
24
console . log ( ) ;
25
25
26
- console . log ( chalk . gray `Checking gh auth status...` ) ;
27
- let auth ;
28
- try {
29
- await $ `gh auth status` ;
30
- auth = ( await $ `gh auth token` ) . toString ( ) . trim ( ) ;
31
- } catch ( error ) {
32
- throw new Error ( error . stderr ) ;
33
- }
34
-
35
- console . log ( chalk . gray `✔️ Done.` ) ;
36
- console . log ( ) ;
37
-
38
26
const { values } = parseArgs ( {
39
27
args : process . argv . slice ( 2 ) ,
40
28
options : {
@@ -172,6 +160,18 @@ try {
172
160
if ( skipApi ) {
173
161
console . log ( chalk . gray `➖ Skipping API hydration.` ) ;
174
162
} else {
163
+ console . log ( chalk . gray `Checking gh auth status...` ) ;
164
+ let auth ;
165
+ try {
166
+ await $ `gh auth status` ;
167
+ auth = ( await $ `gh auth token` ) . toString ( ) . trim ( ) ;
168
+ } catch ( error ) {
169
+ throw new Error ( error . stderr ) ;
170
+ }
171
+
172
+ console . log ( chalk . gray `✔️ Done.` ) ;
173
+ console . log ( ) ;
174
+
175
175
console . log ( chalk . gray `Hydrating repository labels...` ) ;
176
176
177
177
const existingLabels = JSON . parse (
You can’t perform that action at this time.
0 commit comments