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

BREAKING CHANGE: Change IDs from int -> int64. #30

Merged
merged 1 commit into from
Oct 9, 2019

Conversation

wlynch
Copy link
Collaborator

@wlynch wlynch commented Oct 9, 2019

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 #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
@@ -63,7 +63,7 @@ func (t *AppsTransport) RoundTrip(req *http.Request) (*http.Response, error) {
claims := &jwt.StandardClaims{
IssuedAt: time.Now().Unix(),
ExpiresAt: time.Now().Add(time.Minute).Unix(),
Issuer: strconv.Itoa(t.appID),
Issuer: strconv.FormatInt(t.appID, 10),
Copy link
Owner

Choose a reason for hiding this comment

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

I'm OK with this, but what was the reason for this change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Itoa is only for int. FormatInt is the int64 equivalent. See https://godoc.org/strconv#Itoa

Copy link
Owner

Choose a reason for hiding this comment

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

oh of course, I only looked at the return parameters, not the arguments.

@bradleyfalzon
Copy link
Owner

This looks good to me, I'll merge, and anyone using any kind of pinning shouldn't be affected (they'll still be using 0.1.2) until we tag it.

@bradleyfalzon bradleyfalzon self-assigned this Oct 9, 2019
@bradleyfalzon bradleyfalzon merged commit 7783428 into bradleyfalzon:master Oct 9, 2019
grauwoelfchen added a commit to grauwoelfchen/reviewdog that referenced this pull request Oct 25, 2019
The type of IDs (integrationID and installationID) have been updated by
a following PR on ghinstallation project:
bradleyfalzon/ghinstallation#30
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.

int64 for appID/installationID
2 participants