Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Fix segfault on ci list #691

Merged
merged 1 commit into from
Apr 26, 2021
Merged

Fix segfault on ci list #691

merged 1 commit into from
Apr 26, 2021

Conversation

profclems
Copy link
Owner

@profclems profclems commented Apr 26, 2021

Description

For gitlab instances running on versions <= 11, the pipeline list api does not return the created_at field causing glab to panic.
This commit checks if the created_at field is available before using it

Related Issue

Resolves #688

How Has This Been Tested?

Screenshots (if appropriate):

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)

@profclems profclems added the Fix This fixes a bug or incorrect documentation label Apr 26, 2021
For gitlab instances running on versions <= 11, the pipeline list api does not return the `created_at` field causing `glab` to panic.
This commit checks if the created_at field is available before using it

Reolves #688
@codecov
Copy link

codecov bot commented Apr 26, 2021

Codecov Report

Merging #691 (2bade26) into trunk (1ca6e79) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##            trunk     #691   +/-   ##
=======================================
  Coverage   59.95%   59.95%           
=======================================
  Files          90       90           
  Lines        6450     6450           
=======================================
  Hits         3867     3867           
  Misses       2218     2218           
  Partials      365      365           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ca6e79...2bade26. Read the comment docs.

@profclems profclems merged commit 35e792f into trunk Apr 26, 2021
@profclems profclems deleted the fix-segfault-ci-list branch April 26, 2021 06:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Fix This fixes a bug or incorrect documentation size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault when invoking glab ci list
1 participant