File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 44
55from __future__ import annotations
66
7+ import argparse
78import multiprocessing
89import sys
910
@@ -62,6 +63,10 @@ def fetch_issue(issue_json: dict) -> dict:
6263
6364
6465def 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 :
You can’t perform that action at this time.
0 commit comments