Skip to content

Add new StatusState variants

Arne Beer requested to merge Nukesor/rust-gitlab:new-status-states into master

The pipelines API currently fails due to some new StatusState variants that can occur:

Specifically:

  • waiting_for_resource
  • preparing
  • scheduled
Error: Failed to get pipelines.

Caused by:
    0: could not parse alloc::vec::Vec<gitlab::types::PipelineBasic> data from JSON: unknown variant `waiting_for_resource`, expected one of `created`, `pending`, `running`, `success`, `failed`, `canceled`, `skipped`, `manual`
    1: unknown variant `waiting_for_resource`, expected one of `created`, `pending`, `running`, `success`, `failed`, `canceled`, `skipped`, `manual`

This MR adds these new variants according to the official documentation: https://docs.gitlab.com/14.5/ee/api/pipelines.html

Merge request reports