Skip to content

feat(sync): automatically update aliased repositories URLs#38

Merged
GabDug merged 3 commits into
GabDug:mainfrom
noirbizarre:feature/rename-repositories
Aug 24, 2024
Merged

feat(sync): automatically update aliased repositories URLs#38
GabDug merged 3 commits into
GabDug:mainfrom
noirbizarre:feature/rename-repositories

Conversation

@noirbizarre
Copy link
Copy Markdown
Collaborator

This PR adds support for automatic URL update of moved repositories.

The idea is that aliased URLs are old URLs of a repository which moved (or recommend another URL like for black).
So this PR consider a repository to an aliased URL need an update and change it to the last known URL.

Attention has been ported to presentation to avoid crowding the terminal.
Here's my proposal

PDM

image

Poetry

image

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.80%. Comparing base (a2bda3a) to head (7b13171).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #38      +/-   ##
==========================================
+ Coverage   95.69%   95.80%   +0.11%     
==========================================
  Files           9        9              
  Lines         557      572      +15     
  Branches      104      105       +1     
==========================================
+ Hits          533      548      +15     
  Misses         21       21              
  Partials        3        3              
Flag Coverage Δ
unittests 95.62% <100.00%> (+0.11%) ⬆️

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.

@GabDug GabDug added the enhancement New feature or request label Aug 24, 2024
Copy link
Copy Markdown
Owner

@GabDug GabDug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me it's a nice improvement! Thanks for the special care to the display, for both PDM and Poetry.
Imo, user configuration can definitively wait, especially as we only support aliasing/renaming for 3 repositories and they're not yet user-configurable.

Comment thread src/sync_pre_commit_lock/utils.py Outdated
@GabDug GabDug merged commit a996efc into GabDug:main Aug 24, 2024
@noirbizarre noirbizarre deleted the feature/rename-repositories branch August 25, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants