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')
94
116
else:
95
117
print('Something is wrong. Please try again')
118
+
# data3
119
+
ifstatus_code3==201:
120
+
print(f'New label {data3["name"]} created for repository - {repository}')
121
+
elifstatus_code3==404:
122
+
print(f'Resource not found')
123
+
elifstatus_code3==422:
124
+
print(f"{response3_json['message']}. {response3_json['errors'][0]['resource']}{response3_json['errors'][0]['field']}{data3['name']}{response3_json['errors'][0]['code']} in the repository {repository}")
125
+
# print(f'Validation failed, or the endpoint has been spammed')
126
+
else:
127
+
print('Something is wrong. Please try again')
128
+
# data4
96
129
97
-
130
+
ifstatus_code4==201:
131
+
print(f'New label {data4["name"]} created for repository - {repository}')
132
+
elifstatus_code4==404:
133
+
print(f'Resource not found')
134
+
elifstatus_code4==422:
135
+
print(f"{response4_json['message']}. {response4_json['errors'][0]['resource']}{response4_json['errors'][0]['field']}{data4['name']}{response4_json['errors'][0]['code']} in the repository {repository}")
136
+
# print(f'Validation failed, or the endpoint has been spammed')
0 commit comments