6
u/andreigaspar Mar 10 '23
This looks very interesting. The PR review time chart is something we could use for sure.
4
u/LysPJ Mar 10 '23
Thanks! I heard from a lot of developers that they get frustrated when it takes ages for their code to get reviewed and merged.
These charts can alert the team if reviews are taking too long, or if approved code sits unmerged. Hopefully it will reduce frustration for devs, and they can get their code into production faster.
3
3
u/sondregj Mar 10 '23 edited Mar 10 '23
Love it, the other features like daily summaries as well as I hate unnecessary distractions. Kudos!
2
u/LysPJ Mar 11 '23
Oh, it's cool that you saw that! Thank you for the support ๐
Yes, one of the other goals is to allow people to switch off the distracting GitHub notifications and instead get a summary once per day of what happened in their repos (code pushed, PRs opened / closed / merged, etc).
Anything to prevent distractions and stay the zone! ๐ง
3
Mar 11 '23
It does look great! Very well organized and easy to read.
3
u/LysPJ Mar 11 '23
Thanks!
It took a few tries to find that layout. It's always hard to find a balance between showing useful info, and showing too much info ๐
2
3
u/Morpho45 Mar 11 '23
how can use it . give github repo or a site
3
u/LysPJ Mar 11 '23
Hi! You can check it out and install it at: https://GitDailies.com
(I think I messed up with my original post as it got bit lost in the thread! ๐)
3
3
u/LysPJ Mar 10 '23
I created a Pull Request metrics tool for GitHub.
It makes daily reports that show metrics for your team's pull requests, so you can spot (and fix!) delays in the PR open / review / merge pipeline. This helps get code reviewed and into production much faster. You can also see stuff like PR size, which helps encourage good habits like "small batch size" for PRs.
You can install it for free: https://GitDailies.com
It would be great to hear your feedback ๐
2
u/ephemeral404 Mar 11 '23
Looks nice. Curious, why did you release it as github app? The same data can be fetched with just the repo link. Instaling github app is a bigger task/decision than just pasting the link
2
u/LysPJ Mar 11 '23 edited Mar 11 '23
Iโm happy that you like the look of it ๐
Good question about a GitHub App vs using the API directly.
For the system to do useful things (e.g. report scheduling, Slack / email notifications of reports, giving your team to access to the reports, storing daily stats, storing config) it needs a backend.
The backend needs to interact with the GitHub API, but it also needs to manage repo access, user authentication, etc. The GitHub App infrastructure provides all these functions (using what GitHub refers to as โserver to serverโ API calls). It makes repo access management, user authentication, etc, a really smooth (and secure!) process for the user.
Also, if you are not authenticated to the API, the API limits are way lower. For a somewhat-busy repo, you wouldnโt be able to fetch the report data without hitting the rate limits.
Thanks for the question! ๐
(Edit: changed "without being rate limited" to "without hitting the rate limits" to make it clearer!)
1
u/ephemeral404 Mar 11 '23
github apps are not rate limited?
2
u/LysPJ Mar 11 '23
All GitHub API access is rate limited, but the rate limits vary depending whether you are authenticated, what sort of API call it is, etc.
If you aren't authenticated, your IP is limited to 60 requests per hour
On the other hand, a GitHub App limit is 5,000 requests per hour (but it's even better for orgs with lots of users or repos, or using GitHub Enterprise Cloud).
2
u/TheHammeredDog Mar 11 '23
Nice, weโre building something similar at my org using a GitHub App. I saw you mentioned that the app helps with rate limiting - one thing that might also help a lot is using the GraphQL API instead of the REST API (if youโre not doing that already).
2
u/LysPJ Mar 11 '23
Oh nice! It's cool that your org sees the value in something like this. I hope the tool you're building turns out well ๐
Thanks for the tip about the GraphQL API. I'm using a combination of the GraphQL and REST APIs. I would prefer to use entirely GraphQL (so you only fetch exactly what you need), but unfortunately not all data is available via GraphQL.
One (small) benefit of using both APIs is that they have separate rate limit budgets, so querying one API doesn't use up your allowance on the other. Still, I'd prefer the uniformity of just using GraphQL.
2
u/Kylearean Mar 10 '23
Just what my scrum overlord needs, more metrics to "not evaluating you" with.
5
u/LysPJ Mar 10 '23 edited Mar 10 '23
Yeah, micromanagement sucks. That's why these metrics measure the team as a whole, not individuals.
The idea is to promote "healthy metrics" and focus on overall team performance.
1
9
u/economy_programmer_ Mar 10 '23
Just curiosity, which languages and frameworks did you use to build it?
Seems to be a very interesting project btw