Skip to content

Commit cdc6a92

Browse files
committed
remove duplicate PRs (reruns)
1 parent ed8f822 commit cdc6a92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/fetch-ci-pr-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ function compute_check_stats(prs_with_check_data, required_jobs) {
162162
run_nums: [], // list of PR numbers that this check is associated with
163163
};
164164
}
165-
if ((check["name"] in check_stats)) {
165+
if ((check["name"] in check_stats) && !check_stats[check["name"]]["run_nums"].includes(pr["number"])) {
166166
var check_stat = check_stats[check["name"]];
167167
check_stat["runs"] += 1;
168168
check_stat["urls"].push(pr["html_url"])

0 commit comments

Comments
 (0)