This commit is contained in:
2026-03-14 07:19:46 +01:00
parent 89975d96cb
commit cec584c177
54 changed files with 774 additions and 313 deletions
+12
View File
@@ -0,0 +1,12 @@
export default function grabGitRepoName({
git_url,
}: {
git_url: string;
}): string | undefined {
const git_arr = git_url.split("/");
const repo_name = git_arr.pop()?.replace(/\.git$/, "");
const repo_user_name = git_arr.pop();
return `${repo_user_name}/${repo_name}`;
}