-
Notifications
You must be signed in to change notification settings - Fork 101
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
int64 for appID/installationID #27
Comments
I'm in favor of bumping it to int64 to match the rest of go-github, especially since there have been reported cases where int has caused problems. My one hesitation is that this would be a breaking change for anyone currently doing the int cast (which I suspect given the go-github types is quite a few). @bradleyfalzon Breaking changes are something that comes up fairly frequently. One option would be to introduce Go modules to the library to enable semver so that users wanting stability can pin to a version. wdyt? |
I think we should make the change from As for the breaking change, I'm fine with this, see discussion in #28 for my initial thoughts on how to get there. |
@dinvlad are you using Go modules in your project currently? To answer your question, for now convert from We'll release a breaking change and bring this library up to |
@bradleyfalzon thanks, yes I do use 1.11 modules! To deploy it in Cloud Functions, I have to run |
It shouldn't, at least not what I know of. What's the relevant lines in |
Mine says
|
This change makes ghinstallation consistent with github.com/google/go-github for App and Installation identifiers. See google/go-github#597 for related discussion. Fixes bradleyfalzon#27
This change makes ghinstallation consistent with `github.com/google/go-github` for App and Installation identifiers. See google/go-github#597 for related discussion. Fixes bradleyfalzon#27
Hi @bradleyfalzon and @wlynch,
I noticed the discussion re
int64
in google/go-github#597, howeverghinstallation
acceptsappID/installationID
as regularint
for initialization.What would be your recommendation if I'd like to initialize
ghinstallation
based onappID/installationID
fromgithub.InstallationEvent
? Currently, we have to downcastint64
→int
to make it compatible withghinstallation
...Thanks!
The text was updated successfully, but these errors were encountered: