@@ -48,7 +48,7 @@ type Run struct {
4848 Status Status
4949 Conclusion Conclusion
5050 Event string
51- ID int
51+ ID int64
5252 HeadBranch string `json:"head_branch"`
5353 JobsURL string `json:"jobs_url"`
5454 HeadCommit Commit `json:"head_commit"`
@@ -78,15 +78,15 @@ func (r Run) CommitMsg() string {
7878}
7979
8080type Job struct {
81- ID int
81+ ID int64
8282 Status Status
8383 Conclusion Conclusion
8484 Name string
8585 Steps Steps
8686 StartedAt time.Time `json:"started_at"`
8787 CompletedAt time.Time `json:"completed_at"`
8888 URL string `json:"html_url"`
89- RunID int `json:"run_id"`
89+ RunID int64 `json:"run_id"`
9090}
9191
9292type Step struct {
@@ -123,7 +123,7 @@ func AnnotationSymbol(cs *iostreams.ColorScheme, a Annotation) string {
123123}
124124
125125type CheckRun struct {
126- ID int
126+ ID int64
127127}
128128
129129func GetAnnotations (client * api.Client , repo ghrepo.Interface , job Job ) ([]Annotation , error ) {
@@ -179,7 +179,7 @@ func GetRunsWithFilter(client *api.Client, repo ghrepo.Interface, limit int, f f
179179 return filtered , nil
180180}
181181
182- func GetRunsByWorkflow (client * api.Client , repo ghrepo.Interface , limit , workflowID int ) ([]Run , error ) {
182+ func GetRunsByWorkflow (client * api.Client , repo ghrepo.Interface , limit int , workflowID int64 ) ([]Run , error ) {
183183 path := fmt .Sprintf ("repos/%s/actions/workflows/%d/runs" , ghrepo .FullName (repo ), workflowID )
184184 return getRuns (client , repo , path , limit )
185185}
0 commit comments