@@ -57,11 +57,11 @@ func (s *GitLab) CurrentUser(ctx context.Context) (*User, error) {
5757 }, nil
5858}
5959
60- func (s * GitLab ) FetchProjectPage (ctx context.Context , page int , user * User , idAfter int ,
61- ) (_ []int , nextPage int , _ error ) {
60+ func (s * GitLab ) FetchProjectPage (ctx context.Context , page int64 , user * User , idAfter int64 ,
61+ ) (_ []int64 , nextPage int64 , _ error ) {
6262 const perPage = 100
6363
64- projects := make ([]int , 0 , perPage )
64+ projects := make ([]int64 , 0 , perPage )
6565
6666 opt := & gitlab.ListProjectsOptions {
6767 ListOptions : gitlab.ListOptions {
@@ -97,7 +97,7 @@ func (s *GitLab) FetchProjectPage(ctx context.Context, page int, user *User, idA
9797 return projects , resp .NextPage , nil
9898}
9999
100- func (s * GitLab ) HasUserContributions (ctx context.Context , user * User , projectID int ) bool {
100+ func (s * GitLab ) HasUserContributions (ctx context.Context , user * User , projectID int64 ) bool {
101101 const perPage = 50
102102
103103 opt := & gitlab.ListContributorsOptions {
@@ -131,13 +131,13 @@ func (s *GitLab) HasUserContributions(ctx context.Context, user *User, projectID
131131 return false
132132}
133133
134- func (s * GitLab ) FetchCommits (ctx context.Context , user * User , projectID int , since time.Time ,
134+ func (s * GitLab ) FetchCommits (ctx context.Context , user * User , projectID int64 , since time.Time ,
135135) ([]* Commit , error ) {
136136 commits := make ([]* Commit , 0 , maxCommits )
137137
138138 const commitsPerPage = 100
139139
140- page := 1
140+ page := int64 ( 1 )
141141 for page > 0 {
142142 cms , nextPage , err := s .fetchCommitPage (ctx , user , page , commitsPerPage , since , projectID )
143143 if err != nil {
@@ -157,8 +157,8 @@ func (s *GitLab) FetchCommits(ctx context.Context, user *User, projectID int, si
157157}
158158
159159func (s * GitLab ) fetchCommitPage (
160- ctx context.Context , user * User , page , perPage int , since time.Time , projectID int ,
161- ) (commits []* Commit , nextPage int , err error ) {
160+ ctx context.Context , user * User , page , perPage int64 , since time.Time , projectID int64 ,
161+ ) (commits []* Commit , nextPage int64 , err error ) {
162162 commits = make ([]* Commit , 0 , perPage )
163163
164164 opt := & gitlab.ListCommitsOptions {
0 commit comments