Skip to content

Commit

Permalink
Fix API breaking check (#2281)
Browse files Browse the repository at this point in the history
  • Loading branch information
evil159 committed Aug 30, 2024
1 parent b46fb47 commit 67555d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/api-compatibility-check/breaking-api-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@ def add_comment_to_pr(report: "APIDigester.BreakageReport"):
comments = helper.findPRComments(number)

def findApiReportComment(comments):
if comments is None:
return None
for comment in comments:
if "API compatibility report" in comment["body"] and comment["performed_via_github_app"] is not None and comment["performed_via_github_app"]["owner"]["login"] == "mapbox":
return comment
Expand Down

0 comments on commit 67555d3

Please sign in to comment.