Skip to content

Commit 02cb7c2

Browse files
author
MB Burch
committed
Add rate limit data to annotations
1 parent 416b3cc commit 02cb7c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/connector/tickets.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ func (ln *Linear) ListTicketSchemas(ctx context.Context, p *pagination.Token) ([
164164
return nil, "", annotations, err
165165
}
166166

167-
fields, _, _, _, err := ln.client.ListIssueFields(ctx)
167+
fields, _, _, rlData, err := ln.client.ListIssueFields(ctx)
168+
annotations.WithRateLimiting(rlData)
168169
if err != nil {
169170
return nil, "", annotations, fmt.Errorf("baton-linear: failed to list issue fields: %w", err)
170171
}

pkg/linear/models.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ type Project struct {
9393
type GraphQLError struct {
9494
Error string `json:"error"`
9595
Errors []struct {
96-
Message string `json:"message"`
97-
Extensions map[string]interface{} `json:"extensions,omitempty"`
96+
Message string `json:"message"`
9897
} `json:"errors"`
9998
}
10099

0 commit comments

Comments
 (0)