From 47aa08026f27be2cbf48270634280de166f8d722 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 11 Jul 2024 10:41:03 -0400 Subject: [PATCH] ci: scripts: do not count PRs labeled as bug in snapshot Doing duplicates count of bugs, a PR fixing a bug is not a bug report. Many PRs fixing an open bug are labeled with 'bug' and thuse are being counted twice. Signed-off-by: Anas Nashif --- scripts/make_bugs_pickle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/make_bugs_pickle.py b/scripts/make_bugs_pickle.py index 7f8f1c0d787..0a4cb502272 100755 --- a/scripts/make_bugs_pickle.py +++ b/scripts/make_bugs_pickle.py @@ -53,7 +53,7 @@ def open_out_file(args: argparse.Namespace) -> BinaryIO: def main() -> None: args = parse_args() - open_bugs = get_open_bugs() + open_bugs = [issue for issue in get_open_bugs() if not issue.pull_request] with open_out_file(args) as out_file: pickle.dump(open_bugs, out_file)