Skip to content

fix(ci view): Return error if no pipeline found

Kerri Miller requested to merge github/fork/zemzale/b-crash-commit-no-pipe into trunk

Created by: zemzale

Description In cases where we can't find a pipeline for the commit supplied, we just gotta return error, because otherwise it would trigger a nil pointer exception. Related Issue Fixes #225 (closed)

Motivation and Context

Fixes nil pointer reference panic when trying to view CI jobs when they don't exist for a commit.

How Has This Been Tested?

Screenshots (if appropriate): Before image After image

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)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Merge request reports