Skip to content

Commit

Permalink
scripts/highlight_issues.py: print issues with no comments (#2939)
Browse files Browse the repository at this point in the history
`scripts/highlight_issues.py` is useful for finding issues that needs
attention

Previously it would only print external issues with no comments. Not it
will also print issues marked as "needs triage" as well as issues
lacking labels

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested [demo.rerun.io](https://demo.rerun.io/pr/2939) (if
applicable)

- [PR Build Summary](https://build.rerun.io/pr/2939)
- [Docs
preview](https://rerun.io/preview/pr%3Aemilk%2Fimprove-issues-script/docs)
- [Examples
preview](https://rerun.io/preview/pr%3Aemilk%2Fimprove-issues-script/examples)
  • Loading branch information
emilk authored Aug 9, 2023
1 parent 83bfeb1 commit 7a2df8e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/highlight_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"jondo2010",
"jprochazk",
"karimo87",
"martenbjork",
"nikolausWest",
"roym899",
"teh-cmc",
Expand Down Expand Up @@ -104,7 +105,13 @@ def main() -> None:
html_url = issue["html_url"]
comments = issue["comments"]
state = issue["state"]
if comments == 0 and state == "open" and author not in OFFICIAL_RERUN_DEVS:
labels = [label["name"] for label in issue["labels"]]

if "👀 needs triage" in labels:
print(f"{html_url} by {author} needs triage")
elif len(labels) == 0:
print(f"{html_url} by {author} has no labels")
elif comments == 0 and state == "open" and author not in OFFICIAL_RERUN_DEVS:
print(f"{html_url} by {author} has {comments} comments")


Expand Down

0 comments on commit 7a2df8e

Please sign in to comment.