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

Updated developer on-call #26795

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Updated developer on-call #26795

wants to merge 2 commits into from

Conversation

ksykulev
Copy link
Contributor

@ksykulev ksykulev commented Mar 4, 2025

Updated docs to point developers to bash script to pull open community issues and prs.

Added greater limit to existing pr fetch call.

Added a small bash script to query for community PRs open.
@ksykulev
Copy link
Contributor Author

ksykulev commented Mar 4, 2025

The output looks something like this:

Screenshot 2025-03-03 at 6 37 24 PM

Search URL: https://github.com/search?q=is%3Apr%20repo%3Afleetdm%2Ffleet%20is%3Aopen%20-author%3Aalexmitchelliii%20-author%3Aallenhouchins%20-author%3Aambrusps%20-author%3AAnthonySnyder8%20-author%3Adantecatalfamo%20-author%3Addribeiro%20-author%3ADrew-P-drawers%20-author%3Aeashaw%20-author%3Aedwardsb%20-author%3Aeugkuo%20-author%3Afleet-release%20-author%3Ageorgekarrv%20-author%3Agetvictor%20-author%3Aghernandez345%20-author%3Agillespi314%20-author%3Aharrisonravazzolo%20-author%3Ahollidayn%20-author%3Aiansltx%20-author%3Aireedy%20-author%3Ajacobshandling%20-author%3Ajahzielv%20-author%3Ajmwatts%20-author%3AKendraAtFleet%20-author%3Aksatter%20-author%3Aksykulev%20-author%3Alucasmrod%20-author%3Alukeheath%20-author%3Amarko-lisica%20-author%3Amason-buettner%20-author%3Amike-j-thomas%20-author%3Amikermcneil%20-author%3Amna%20-author%3Amostlikelee%20-author%3Anoahtalerman%20-author%3Anonpunctual%20-author%3Aonasismunro%20-author%3APatagonia121%20-author%3APezHub%20-author%3Aphtardif1%20-author%3Apintomi1989%20-author%3Arachaelshaw%20-author%3ARachelElysia%20-author%3Arebeccaui%20-author%3Arfairburn%20-author%3ASampfluger88%20-author%3ASFriendLee%20-author%3Asgress454%20-author%3Asharon-fdm%20-author%3ATomOstertag1010%20-author%3Axpkoala%20-author%3Azayhanlon%20-author%3Azwass%20-author%3Adependabot%5Bbot%5D

Copy link
Member

@lukeheath lukeheath left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together! I was going to suggest putting it in a new /tools/oncall directory, but saw that we already have one, and @lucasmrod wrote a similar script: https://github.com/fleetdm/fleet/tree/main/tools/oncall.

If yours is materially different, please add it to that directory and update the README with instructions.

If not, I think this is an example of us not doing a good job consolidating and centralizing our developer tools and documentation. Would you please revise this PR to include a link to the /tools/oncall directory?

days_ago=$(( (current_epoch - created_at_epoch) / 86400 ))
printf "%s#@#%s#@#%s\n" "$url" "$user created $days_ago days ago" "$title"
done | column -s '#@#' -t
```
Copy link
Member

Choose a reason for hiding this comment

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

I would move this whole script into tools/oncall and then reference it here.

Feel free to remove the ones already in tools/oncall/ if this script replaces them (they haven't been used/udpated for a while).

@ksykulev
Copy link
Contributor Author

ksykulev commented Mar 6, 2025

Well that unfortunate, love doing double work. I did not know that we already had a script to this. I can tomb stone this for the gh version. It seemingly does identical things. But I will mention it on the docs with this PR 💀

Fix the existing sh script to pull more a larger size of open prs. There
does not seem to be a way to paginate, only a way to set the limit, so
we'll set it to a large enough number to scan all prs.
@@ -50,7 +50,7 @@ prs() {
members="$(curl -s -u "${username}:${token}" https://api.github.com/orgs/fleetdm/members?per_page=100 | jq -r 'map(.login)' | jq '. += ["app/dependabot"]')"

# defaults to listing open prs
gh pr list --repo fleetdm/fleet --json id,title,author,url,createdAt |
gh pr list --limit 1000 --repo fleetdm/fleet --json id,title,author,url,createdAt |
Copy link
Member

Choose a reason for hiding this comment

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

Ah good catch otherwise defaults to 30.

Copy link
Member

@lukeheath lukeheath left a comment

Choose a reason for hiding this comment

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

Thanks!

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

Successfully merging this pull request may close these issues.

4 participants