Method: Dri::ApiClient#fetch_new_failures
- Defined in:
- lib/dri/api_client.rb
#fetch_new_failures(project_id:, start_date:, end_date:, state:) ⇒ Array<Gitlab::ObjectifiedHash>
Fetch new failures for a given project
188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/dri/api_client.rb', line 188 def fetch_new_failures(project_id:, start_date:, end_date:, state:) gitlab.issues( project_id, labels: [FAILURE_NEW, QA].join(','), order_by: "created_at", sort: 'desc', state: state, scope: "all", created_after: start_date.dup.utc.iso8601, # utc modifies the receiver, so making a copy created_before: end_date.dup.utc.iso8601, per_page: 100 ) end |