Skip to content

Commit 4009d2d

Browse files
committed
add --list-external
1 parent 1b9e2a5 commit 4009d2d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/highlight_issues.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from __future__ import annotations
66

7+
import argparse
78
import multiprocessing
89
import sys
910

@@ -62,6 +63,10 @@ def fetch_issue(issue_json: dict) -> dict:
6263

6364

6465
def main() -> None:
66+
parser = argparse.ArgumentParser(description="Generate a changelog.")
67+
parser.add_argument("--list-external", action="store_true", help="List all external issues")
68+
args = parser.parse_args()
69+
6570
access_token = get_github_token()
6671

6772
headers = {"Authorization": f"Bearer {access_token}"}
@@ -109,6 +114,10 @@ def main() -> None:
109114
state = issue["state"]
110115
labels = [label["name"] for label in issue["labels"]]
111116

117+
if args.list_external and state == "open" and author not in OFFICIAL_RERUN_DEVS:
118+
print(f"{html_url} by {author}")
119+
continue
120+
112121
if "👀 needs triage" in labels:
113122
print(f"{html_url} by {author} needs triage")
114123
elif len(labels) == 0:

0 commit comments

Comments
 (0)