Conversation
Member
henriquesimoes
left a comment
There was a problem hiding this comment.
I didn't notice this was a PR before. Just a few suggestions.
7 repositories were missing from the list. Instead of adding them manually, refactor the script to automatically fetch the list of repositories from the organization, and add a sort_repos function to keep the areaDetector, ADCore and ADSupport output on top, since those are the main repositories.
The stale items are sampled from all areaDetector repositories. In order to achieve this, it was necessary to increase the amount of issues and PRs that could be returned from gh, since otherwise they would be limited to 30, and could miss one of the stale issues. 1000 is used as a stand-in for "infinite".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It was missing some repositories, so stop hardcoding those.
Make it capable of listing stale issues and PRs as well.
Sample output: