openshift-pipelines / pipelines-as-code

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

Implement GetTaskURI for GitLab provider #1688

Closed chmouel closed 1 week ago

chmouel commented 1 month ago

This will be using the token when fetching tasks if the fetched URL is on the same host of where the Repository URL is.

No e2e test since it involve a lot of manual setup to be able to do this, if there is more private repository features we need to test on gitlab specifically we will add that (the pac private repo feature is already tested at lenght in gitea and github providers).

Jira: https://issues.redhat.com/browse/SRVKP-4594

Changes

Submitter Checklist

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 58.18182% with 23 lines in your changes missing coverage. Please review.

Project coverage is 64.55%. Comparing base (225cd25) to head (a4a34ca). Report is 2 commits behind head on main.

Files Patch % Lines
pkg/provider/gitlab/task.go 57.40% 21 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1688 +/- ## ========================================== - Coverage 64.59% 64.55% -0.05% ========================================== Files 143 144 +1 Lines 11109 11161 +52 ========================================== + Hits 7176 7205 +29 - Misses 3412 3433 +21 - Partials 521 523 +2 ```

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

chmouel commented 1 month ago

/test go-testing

chmouel commented 3 weeks ago

/retest