fix(github): return empty without repo in getRepoOwnerAndRepo helper
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
type TRepoOwnerAndRepo = {
|
||||
repoOwner: string;
|
||||
repo: string;
|
||||
repoOwner?: string;
|
||||
repo?: string;
|
||||
}
|
||||
|
||||
export default function getRepoOwnerAndRepo(repoFullName: string): TRepoOwnerAndRepo {
|
||||
if (!repoFullName) return {};
|
||||
|
||||
const [repoOwner, repo] = repoFullName.split('/');
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user