Skip to content

Conversation

@sarahdayan
Copy link
Member

@sarahdayan sarahdayan commented Feb 3, 2026

Summary

Replaces parse-github-url with a simple internal utility function.

Why

  • parse-github-url hasn't been updated since 2019
  • The functionality needed is simple enough to implement internally
  • Reduces external dependencies

Changes

  • Remove parse-github-url dependency from shipjs-lib
  • Add new parseGitHubURL.js utility that handles:
    • HTTPS URLs (https://github.com/owner/repo.git)
    • SSH URLs ([email protected]:owner/repo.git)
    • URLs without protocol (github.com/owner/repo)
    • URLs with branch paths (/tree/branch)
  • Update getRepoInfo.js, getRepoURLWithToken.js, getRepoURLWithTokenMasked.js to use new utility
  • Add unit tests for the new utility

@sarahdayan sarahdayan force-pushed the chore/replace-shelljs-with-execa branch from 77a39b8 to e01140b Compare February 3, 2026 13:46
@sarahdayan sarahdayan force-pushed the chore/replace-parse-github-url branch 2 times, most recently from 58be2f1 to cb4410f Compare February 3, 2026 13:53
@sarahdayan sarahdayan requested review from a team, Haroenv, aymeric-giraudet and dhayab and removed request for a team February 3, 2026 13:55
@sarahdayan sarahdayan force-pushed the chore/replace-shelljs-with-execa branch from 7d62c2a to bba910e Compare February 3, 2026 14:58
@sarahdayan sarahdayan force-pushed the chore/replace-parse-github-url branch 2 times, most recently from 30e6817 to 5a03df5 Compare February 3, 2026 18:41
@sarahdayan sarahdayan force-pushed the chore/replace-shelljs-with-execa branch 2 times, most recently from e1b1bd7 to ab25921 Compare February 3, 2026 19:18
@sarahdayan sarahdayan force-pushed the chore/replace-parse-github-url branch from 5a03df5 to 34ec6f5 Compare February 3, 2026 19:23
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.

2 participants