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
# print(f'Validation failed, or the endpoint has been spammed')
159
196
else:
160
197
print('Something is wrong. Please try again')
198
+
# data 5
199
+
ifstatus_code5==201:
200
+
print(f'New label {data5["name"]} created for repository - {repository}')
201
+
elifstatus_code5==404:
202
+
print(f'Resource not found')
203
+
elifstatus_code5==422:
204
+
print(f"{response5_json['message']}. {response5_json['errors'][0]['resource']}{response5_json['errors'][0]['field']}{data5['name']}{response5_json['errors'][0]['code']} in the repository {repository}")
205
+
# print(f'Validation failed, or the endpoint has been spammed')
206
+
else:
207
+
print('Something is wrong. Please try again')
208
+
# data 6
209
+
ifstatus_code6==201:
210
+
print(f'New label {data6["name"]} created for repository - {repository}')
211
+
elifstatus_code6==404:
212
+
print(f'Resource not found')
213
+
elifstatus_code6==422:
214
+
print(f"{response6_json['message']}. {response6_json['errors'][0]['resource']}{response6_json['errors'][0]['field']}{data6['name']}{response6_json['errors'][0]['code']} in the repository {repository}")
215
+
# print(f'Validation failed, or the endpoint has been spammed')
216
+
else:
217
+
print('Something is wrong. Please try again')
218
+
# data 7
219
+
ifstatus_code7==201:
220
+
print(f'New label {data7["name"]} created for repository - {repository}')
221
+
elifstatus_code7==404:
222
+
print(f'Resource not found')
223
+
elifstatus_code7==422:
224
+
print(f"{response7_json['message']}. {response7_json['errors'][0]['resource']}{response7_json['errors'][0]['field']}{data7['name']}{response7_json['errors'][0]['code']} in the repository {repository}")
225
+
# print(f'Validation failed, or the endpoint has been spammed')
226
+
else:
227
+
print('Something is wrong. Please try again')
228
+
229
+
# data 8
230
+
ifstatus_code8==201:
231
+
print(f'New label {data8["name"]} created for repository - {repository}')
232
+
elifstatus_code8==404:
233
+
print(f'Resource not found')
234
+
elifstatus_code8==422:
235
+
print(f"{response8_json['message']}. {response8_json['errors'][0]['resource']}{response8_json['errors'][0]['field']}{data8['name']}{response8_json['errors'][0]['code']} in the repository {repository}")
236
+
# print(f'Validation failed, or the endpoint has been spammed')
0 commit comments