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

chore: improve the dashboard comment query #5016

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dougch
Copy link
Contributor

@dougch dougch commented Jan 9, 2025

Release Summary:

Resolved issues:

n/a

Description of changes:

Our original GitHub dashboard has a "No review" block that should actually be PRs that have no comment, update the query.

Call-outs:

The distinction between review and comment is a bit pedantic.

Testing:

How is this change tested (unit tests, fuzz tests, etc.)? tested using the GitHub Query https://github.com/search?q=repo%3Aaws%2Fs2n-tls+is%3Aopen+is%3Apr+comments%3A0+-label%3Astatus%2Fstale+-label%3As2n-core&type=pullrequests

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Jan 9, 2025
@dougch dougch marked this pull request as ready for review January 9, 2025 23:33
@dougch dougch requested a review from jouho January 9, 2025 23:33
title: 'No review (external) last 14 days'
issue_query: 'repo:aws/s2n-tls is:open is:pr review:none -label:status/stale -label:s2n-core created:>{{ date("-14 days") }}'
title: 'No comment (external) last 14 days'
issue_query: 'repo:aws/s2n-tls is:open is:pr comments:0 -label:status/stale -label:s2n-core created:>{{ date("-14 days") }}'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to filter by "0 comments from the team member"? Minor edge case, but we could miss a stale PR if the requester themselves leave a comment, which could happen.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the query language allows for -commenter:dougch to toss out anything I have commented on, to do this for the whole team isn't really feasible. Yes, there is a change of missing some, but the noise of "0 reviews" when we've already commented is a bigger frustration.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it. Yeah it's definitely nicer than getting a bunch of false negatives. Just wanted to call it out

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

Successfully merging this pull request may close these issues.

2 participants