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"::error file={file_path}::Author {i} 'name' must be a non-empty string")
89
107
returnFalse
90
108
109
+
# Validate that either 'links' or 'issues' exists (or both)
110
+
if'links'notindataand'issues'notindata:
111
+
print(f"::error file={file_path}::Must contain either 'links' or 'issues' key (or both)")
112
+
returnFalse
113
+
114
+
# Validate 'issues' field if present
115
+
if'issues'indata:
116
+
ifnotisinstance(data['issues'], int):
117
+
print(f"::error file={file_path}::Field 'issues' must be an integer")
118
+
returnFalse
119
+
ifdata['issues'] >17000:
120
+
print(f"::error file={file_path}::Field 'issues' value {data['issues']} points to a non-existing github PR. Did you intend to reference a JIRA issue, please use 'links'.")
0 commit comments