Skip to content

Commit

Permalink
redmine, revise query for silencer
Browse files Browse the repository at this point in the history
  • Loading branch information
BuJo committed Jul 4, 2023
1 parent df1f4f5 commit 9bf0f0d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/connectors/redmine/silencer.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ func (s *Silencer) getIssues(ctx context.Context, ids []string) ([]issue, error)

req.Header.Set("X-Redmine-API-Key", s.config.BearerToken)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("issue_id", strings.Join(ids, ","))

q := req.URL.Query()
q.Set("limit", "100")
q.Set("offset", "0")
q.Set("issue_id", strings.Join(ids, ","))
req.URL.RawQuery = q.Encode()

res, err := s.client.Do(req)
if err != nil {
Expand Down

0 comments on commit 9bf0f0d

Please sign in to comment.