Merge pull request #232 from adafruit/fixing-merged-pr-check

Fixed merged pr check
This commit is contained in:
Kattni 2021-06-25 15:33:21 -04:00 committed by GitHub
commit 8f1a98507e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -987,7 +987,11 @@ class library_validator():
insights["pr_authors"].add(pr_info["user"]["login"])
insights["active_prs"] += 1
else:
if pr_info["merged"]:
merged = datetime.datetime.strptime(
issue["closed_at"],
"%Y-%m-%dT%H:%M:%SZ"
)
if pr_info["merged"] and merged > since:
merged_info = ""
if show_closed_metric:
created = datetime.datetime.strptime(