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: main
Choose a base branch
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.

Base automatically changed from master to main January 18, 2021 20:51
@ambv ambv closed this Apr 15, 2022
@ambv ambv reopened this Apr 15, 2022
@ambv ambv removed the CLA signed label Apr 15, 2022
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.

3 participants