Skip to content

Commit fca9caa

Browse files
committed
fix
1 parent 9270165 commit fca9caa

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

utils/patch_helper.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,7 @@ def get_prs_by_label(label):
8484
prs = json.loads(result.stdout)
8585
for pr in prs:
8686
pr["oid"] = pr.get("mergeCommit", {}).get("oid")
87-
if pr["oid"]:
88-
pr["timestamp"] = datetime.fromisoformat(pr["mergeCommit"]["committedDate"].replace("Z", "+00:00"))
89-
else:
90-
pr["timestamp"] = None
91-
return [pr.get("mergeCommit") for pr in prs if pr.get("mergeCommit")]
87+
return [pr for pr in prs if pr.get("mergeCommit")]
9288

9389
def get_commit_timestamp(commit_sha):
9490
"""Get UNIX timestamp of a commit using git."""

0 commit comments

Comments
 (0)