From 4009d2dcb24da14c5e91ac710b879e44522b68ed Mon Sep 17 00:00:00 2001 From: Clement Rey Date: Mon, 14 Oct 2024 11:36:03 +0200 Subject: [PATCH] add --list-external --- scripts/highlight_issues.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/highlight_issues.py b/scripts/highlight_issues.py index 4b9a2a82cb38e..595bb0d934bf5 100755 --- a/scripts/highlight_issues.py +++ b/scripts/highlight_issues.py @@ -4,6 +4,7 @@ from __future__ import annotations +import argparse import multiprocessing import sys @@ -62,6 +63,10 @@ def fetch_issue(issue_json: dict) -> dict: def main() -> None: + parser = argparse.ArgumentParser(description="Generate a changelog.") + parser.add_argument("--list-external", action="store_true", help="List all external issues") + args = parser.parse_args() + access_token = get_github_token() headers = {"Authorization": f"Bearer {access_token}"} @@ -109,6 +114,10 @@ def main() -> None: state = issue["state"] labels = [label["name"] for label in issue["labels"]] + if args.list_external and state == "open" and author not in OFFICIAL_RERUN_DEVS: + print(f"{html_url} by {author}") + continue + if "👀 needs triage" in labels: print(f"{html_url} by {author} needs triage") elif len(labels) == 0: