Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filters with jq #534

Open
WesleyTheGeolien opened this issue Feb 21, 2025 · 0 comments
Open

Filters with jq #534

WesleyTheGeolien opened this issue Feb 21, 2025 · 0 comments

Comments

@WesleyTheGeolien
Copy link

Is your feature request related to a problem? Please describe.
The current filters are great but not all cases can be taken into account. For example I am looking to find Pull requests that are ready but have no reviewers (For example something like this: isaacs/github#1785). The same for filtering out -review:changes-requested doesn't work.

Describe the solution you'd like
Have a way inside gh-dash.yml to specify filters using jq or have a way to add values to the dashboard manually, I am not sure which fields you currently need though

Describe alternatives you've considered
Using the built in jq support of gh it is possible to filter those objects in my case the command currently looks something like:

gh pr list --json reviewRequests,title,url,author,reviewDecision --search "is:open draft:false" --jq '.[] | select(.reviewRequests | length == 0) | select(.reviewDecision == "CHANGES_REQUESTED") |del(.reviewRequests) | .author_name = .author.login | del(.author)'

Another alternative would be to have a github action or something setup to auto label these and then filter on label but that adds extras to the repo only for gh dash to be able to filter correctly and "pollutes" the repo

Which I have tied to a hotkey for now but having it inside the dashboard would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant