Skip to content

Commit

Permalink
highlight_issues.py --list-external to list all open external issues (
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc authored Oct 14, 2024
1 parent 9d46fb1 commit f84a80b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/generate_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"nikolausWest",
"teh-cmc",
"Wumpf",
"zehiko",
]


Expand Down
12 changes: 11 additions & 1 deletion scripts/highlight_issues.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env python3

"""Generate a list of GitHub issues that needs attention."""
"""Generate a list of GitHub issues that need attention."""

from __future__ import annotations

import argparse
import multiprocessing
import sys

Expand All @@ -24,6 +25,7 @@
"roym899",
"teh-cmc",
"Wumpf",
"zehiko",
]


Expand Down Expand Up @@ -61,6 +63,10 @@ def fetch_issue(issue_json: dict) -> dict:


def main() -> None:
parser = argparse.ArgumentParser(description="Generate a list of GitHub issues that need attention.")
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 @@ -108,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 f84a80b

Please sign in to comment.