Skip to content

Commit

Permalink
add --list-external
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Oct 14, 2024
1 parent 1b9e2a5 commit 4009d2d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/highlight_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from __future__ import annotations

import argparse
import multiprocessing
import sys

Expand Down Expand Up @@ -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}"}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4009d2d

Please sign in to comment.