Sitelet https://web.archive.org/web/20201207071846/https://github.com/python/blurb_it/pull/191
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

Added efficiency improvement to get_installation #191

Open
wants to merge 1 commit into
base: master
from

Conversation

@lrjball
Copy link

@lrjball lrjball commented Dec 5, 2020

I've been using this project as a template for my own github app and it has been really helpful, so thank you.

When looking through I did notice one slight enhancement - github has an endpoint to get the installation directly given a user which is easier than getting every installation of the app and looping through them all to find the user.

Hopefully this is helpful, I have tested it on my own app and the two functions return exactly the same data. I couldn't think of an easy way to add a test for this but if anyone can suggest one then I can add it in.

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.