openshift-pipelines / pipelines-as-code

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

[Feature] Introduce global repository setting #1667

Closed chmouel closed 2 months ago

chmouel commented 2 months ago

We now have a global repository setting that can be set in the namespace where the controller is installed. This allows you to have a default setting for all repositories that don't override it.

Jira: https://issues.redhat.com/browse/SRVKP-4425 https://issues.redhat.com/browse/SRVKP-4069

Changes

Submitter Checklist

codecov[bot] commented 2 months ago

Codecov Report

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

Project coverage is 64.39%. Comparing base (e8a2251) to head (e787246).

Files Patch % Lines
pkg/reconciler/reconciler.go 6.89% 26 Missing and 1 partial :warning:
pkg/pipelineascode/match.go 55.55% 5 Missing and 3 partials :warning:
pkg/reconciler/finalizer.go 12.50% 6 Missing and 1 partial :warning:
pkg/pipelineascode/secret.go 77.77% 2 Missing and 4 partials :warning:
pkg/adapter/adapter.go 81.25% 2 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1667 +/- ## ========================================== - Coverage 64.53% 64.39% -0.15% ========================================== Files 143 143 Lines 11023 11084 +61 ========================================== + Hits 7114 7137 +23 - Misses 3388 3421 +33 - Partials 521 526 +5 ```

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

chmouel commented 2 months ago

@sm43 i am starting with a repository.Get for now, will do the watch thing in later PR (since it's already rather big)

chmouel commented 2 months ago

/retest