Skip to content

Commit

Permalink
bugfix: fixed misc issues with linear integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice3man543 committed Sep 13, 2024
1 parent a45e4bb commit db43096
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/reporting/trackers/linear/linear.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ func (i *Integration) CreateIssue(event *output.ResultEvent) (*filters.CreateIss
"issueID": types.ToString(existingIssue.ID),
}
var resp struct {
LastSyncID string `json:"lastSyncId"`
IssueUpdate struct {
LastSyncID int `json:"lastSyncId"`
}
}
err := i.doGraphqlRequest(ctx, existingIssueUpdateStateMutation, &resp, variables, "IssueUpdate")
if err != nil {
Expand All @@ -125,7 +127,9 @@ func (i *Integration) CreateIssue(event *output.ResultEvent) (*filters.CreateIss
"commentCreateInput": commentInput,
}
var resp struct {
LastSyncID string `json:"lastSyncId"`
CommentCreate struct {
LastSyncID int `json:"lastSyncId"`
}
}
err := i.doGraphqlRequest(ctx, commentCreateExistingTicketMutation, &resp, variables, "CommentCreate")
if err != nil {
Expand Down Expand Up @@ -387,6 +391,7 @@ func (i *Integration) doGraphqlRequest(ctx context.Context, query string, v any,
Errors errorsGraphql
//Extensions any // Unused.
}

err = json.NewDecoder(resp.Body).Decode(&out)
if err != nil {
return err
Expand Down

0 comments on commit db43096

Please sign in to comment.