diff --git a/datadog_checks_dev/datadog_checks/dev/tooling/github.py b/datadog_checks_dev/datadog_checks/dev/tooling/github.py
index <HASH>..<HASH> 100644
--- a/datadog_checks_dev/datadog_checks/dev/tooling/github.py
+++ b/datadog_checks_dev/datadog_checks/dev/tooling/github.py
@@ -90,9 +90,10 @@ def from_contributor(pr_payload):
 
 
 def parse_pr_number(log_line):
-    match = re.search(PR_PATTERN, log_line)
-    if match:
-        return match.group(1)
+    """If there are multiple matches, the PR id is always the latest one"""
+    matches = re.findall(PR_PATTERN, log_line)
+    if matches:
+        return matches[-1]
 
 
 def parse_pr_numbers(git_log_lines):
Fix for parsing the PR id from commits

* Fix for PR name



* Fix variable name