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'New label {data1["name"]} created for repository - {repository}')
79
+
elifstatus_code1==404:
80
+
print(f'Resource not found')
81
+
elifstatus_code1==422:
82
+
print(f"{response1_json['message']}. {response1_json['errors'][0]['resource']}{response1_json['errors'][0]['field']}{data1['name']}{response1_json['errors'][0]['code']} in the repository {repository}")
83
+
# print(f'Validation failed, or the endpoint has been spammed')
84
+
else:
85
+
print('Something is wrong. Please try again')
86
+
87
+
ifstatus_code2==201:
88
+
print(f'New label {data2["name"]} created for repository - {repository}')
89
+
elifstatus_code2==404:
90
+
print(f'Resource not found')
91
+
elifstatus_code2==422:
92
+
print(f"{response2_json['message']}. {response2_json['errors'][0]['resource']}{response2_json['errors'][0]['field']}{data2['name']}{response2_json['errors'][0]['code']} in the repository {repository}")
93
+
# print(f'Validation failed, or the endpoint has been spammed')
0 commit comments