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

add GetByRepository for InstallationsService #61

Merged
merged 3 commits into from
Oct 26, 2020
Merged

add GetByRepository for InstallationsService #61

merged 3 commits into from
Oct 26, 2020

Conversation

jetersen
Copy link
Contributor

fixes #46

@palantirtech
Copy link
Member

Thanks for your interest in palantir/go-githubapp, @jetersen! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request.

if isNotFound(err) {
return Installation{}, InstallationNotFound(fmt.Sprintf("%s/%s", owner, repo))
}
return Installation{}, errors.Wrapf(err, "failed to get installation for repository %q", owner)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should properly be owner, repo

Copy link
Member

@bluekeyes bluekeyes 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 adding this!

githubapp/installations.go Outdated Show resolved Hide resolved
@bluekeyes bluekeyes merged commit 002ed1f into palantir:develop Oct 26, 2020
@jetersen jetersen deleted the getbyrepo branch October 26, 2020 22:40
@jetersen
Copy link
Contributor Author

Your most welcome 😃

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.

Add InstallationService#GetByRepository
3 participants