openshift-pipelines / pipelines-as-code

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

Expose source URL and branch via annotation #1699

Closed MartinBasti closed 4 weeks ago

MartinBasti commented 4 weeks ago

Adding annotations to PR to expose source url and source branch from PRs. While PAC allows too use source-url and source-branch in templates, this information was not propagated into PLR metadata and was hard to identify PLRs trigerred from forks.

Resolves: #1693

Changes

Submitter Checklist

chmouel commented 4 weeks ago

/ok-to-test

codecov[bot] commented 4 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.54%. Comparing base (9dcbe19) to head (500835d). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1699 +/- ## ======================================= Coverage 64.54% 64.54% ======================================= Files 143 143 Lines 11098 11100 +2 ======================================= + Hits 7163 7165 +2 Misses 3413 3413 Partials 522 522 ```

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

MartinBasti commented 4 weeks ago

I'm not sure if I broke the e2e test, if yes, then I failed to find why

chmouel commented 4 weeks ago

Thanks @MartinBasti ๐Ÿ‘๐Ÿป