Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Gitlab parsing for repo with - #76

Merged

Conversation

boozec
Copy link
Contributor

@boozec boozec commented Sep 6, 2023

Hi all 👋 unfortunately the branch rename closed the old PR at #74

Description

Gitlab URLs has the format with "/-/blob/". This PR fixs the parser editing the FORMAT string with the "/-/" before the ('blob'|'tree').

eg: The string "https://gitlab.com/gitlab-org/gitlab/blob/master/README.md" is valid as "https://gitlab.com/gitlab-org/gitlab/-/blob/master/README.md".

References

Fixs #42

Checklist

  • Code lint checked via inv lint
  • Tests added

Gitlab URLs has the format with "/-/blob/". This commit fixs the parser
editing the FORMAT string with the "/-/" before the ('blob'|'tree').

Resolves nephila#42
For retrocompatibility
@protoroto
Copy link
Member

@boozec Thanks a lot! Will make @yakky review the code!

@protoroto protoroto requested a review from yakky September 6, 2023 08:05
@codecov
Copy link

codecov bot commented Sep 6, 2023

Codecov Report

❗ No coverage uploaded for pull request base (master@4f783b3). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #76   +/-   ##
=========================================
  Coverage          ?   94.22%           
=========================================
  Files             ?       12           
  Lines             ?      225           
  Branches          ?       49           
=========================================
  Hits              ?      212           
  Misses            ?       10           
  Partials          ?        3           
Flag Coverage Δ
unittests 94.22% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@protoroto
Copy link
Member

@boozec Sorry to bother, but after merging master branch into yours tests are broken: is there any chance you can have a look at it?

@boozec
Copy link
Contributor Author

boozec commented Sep 13, 2023

Hi @protoroto it was caused by a typo with a ~. It should work again now :)

@protoroto
Copy link
Member

Hi @protoroto it was caused by a typo with a ~. It should work again now :)

Thank you very much! I really hope we'll be able to merge this and release a new version as soon as possible!

@protoroto protoroto merged commit 880ed7b into nephila:master Sep 24, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants