Skip to content

Commit 47aa080

Browse files
committed
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 <[email protected]>
1 parent ca02651 commit 47aa080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/make_bugs_pickle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def open_out_file(args: argparse.Namespace) -> BinaryIO:
5353

5454
def main() -> None:
5555
args = parse_args()
56-
open_bugs = get_open_bugs()
56+
open_bugs = [issue for issue in get_open_bugs() if not issue.pull_request]
5757

5858
with open_out_file(args) as out_file:
5959
pickle.dump(open_bugs, out_file)

0 commit comments

Comments
 (0)