ManoManoTech / homer

Homer is a Slack bot intended to help you to easily share and follow Gitlab merge requests.
MIT License
29 stars 10 forks source link

fix(search-mr): Fix the searchMergeRequestByUrl function to handle /-/ in the URL #62

Closed M0nkeySan closed 3 weeks ago

M0nkeySan commented 3 weeks ago

The mergeRequestfixture was incorrect, the URL of a MR is build like this :

http://gitlab.example.com/my-group/my-project/-/merge_requests/1 instead of http://gitlab.example.com/my-group/my-project/merge_requests/1

I fixed the retrievement of the projectPath to handle the additional /-/

codecov[bot] commented 3 weeks ago

Codecov Report

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

Project coverage is 78.40%. Comparing base (f470aaa) to head (2571bf8). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #62 +/- ## ======================================= Coverage 78.40% 78.40% ======================================= Files 94 94 Lines 1922 1922 Branches 347 347 ======================================= Hits 1507 1507 Misses 387 387 Partials 28 28 ```

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