-
Notifications
You must be signed in to change notification settings - Fork 32
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
[feature] Support SCP-Style Git URLs #668
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #668 +/- ##
==========================================
- Coverage 72.06% 71.71% -0.35%
==========================================
Files 175 175
Lines 12017 12086 +69
==========================================
+ Hits 8660 8668 +8
- Misses 3143 3203 +60
- Partials 214 215 +1 ☔ View full report in Codecov by Sentry. |
@@ -149,3 +164,68 @@ func HookCreateRepoPrivateKey() ent.Hook { | |||
}) | |||
} | |||
} | |||
|
|||
var scpRegex = regexp.MustCompile(`^(ssh://)?([a-zA-Z0-9_]+)@([a-zA-Z0-9._-]+):([a-zA-Z0-9./._-]+)(?:\?||$)(.*)$`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so readable 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
death
What type of PR is this?
/kind feature
What this PR does / why we need it:
Support SCP style URLs when specifying a repo, this will enable the github ssh copy+pasta at the expense of our sanity.
Adds a new "last_imported_at" timestamp to the repository.
Update default tome naming to use metadata.yml