openshift-pipelines / pipelines-as-code

Pipelines-as-Code for Tekton
https://pipelinesascode.com
Apache License 2.0
124 stars 81 forks source link

Update sort package to latest & adds nil check for PRun before sorting #1694

Closed chmouel closed 1 month ago

chmouel commented 1 month ago

we use sort code from k8s repo, this updates the code to the latest master but keeps using integer.IntMin to continue using golang 1.20 & check pipelinrun is not nil and its name is not empty string then only add for sorting# Changes

Submitter Checklist

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 52.94118% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 63.19%. Comparing base (b472b7a) to head (7d026f4). Report is 1 commits behind head on release-v0.24.x.

Files Patch % Lines
pkg/sort/runtime_sort.go 0.00% 4 Missing :warning:
pkg/pipelineascode/concurrency.go 62.50% 2 Missing and 1 partial :warning:
pkg/cmd/tknpac/info/install.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## release-v0.24.x #1694 +/- ## =================================================== - Coverage 63.34% 63.19% -0.15% =================================================== Files 139 139 Lines 10753 10762 +9 =================================================== - Hits 6811 6801 -10 - Misses 3418 3436 +18 - Partials 524 525 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.