Skip to content

feat(ci-delete): add flags for filtering and pagination

Guido Pili requested to merge guido.pili/cli:main into main

Description

Added two new flags (updated-before-days and source) to improve filtering for pipelines that are going to be deleted with the glab ci delete command when not passing a list of IDs, and added flags to loop through pages when fetching IDs.

Related Issues

Resolves Add new filters and pagination inside the `ci d... (#7417 - closed)

How has this been tested?

Non-regression tests consisted in checking that the output of the execution of glab ci delete with the existing flags is consistent with the built version, when using the same flags/arguments.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap
Edited by Amy Qualls

Merge request reports