Skip to content

Commit d555cda

Browse files
authored
fix: Parse note IDs as int64 (#133)
1 parent 5c020aa commit d555cda

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/webgit/github.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (g *GithubMergeRequest) CreateMergeRequestNote(body string) (Note, error) {
163163
}
164164

165165
func (g *GithubMergeRequest) GetMergeRequestNote(noteId string) (Note, error) {
166-
noteId2, err := strconv.ParseInt(noteId, 10, 32)
166+
noteId2, err := strconv.ParseInt(noteId, 10, 64)
167167
if err != nil {
168168
return nil, err
169169
}

controllers/webgit/gitlab.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (g *GitlabMergeRequest) CreateMergeRequestNote(body string) (Note, error) {
9191
}
9292

9393
func (g *GitlabMergeRequest) GetMergeRequestNote(noteId string) (Note, error) {
94-
noteId2, err := strconv.ParseInt(noteId, 10, 32)
94+
noteId2, err := strconv.ParseInt(noteId, 10, 64)
9595
if err != nil {
9696
return nil, err
9797
}

0 commit comments

Comments
 (0)