diff options
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r-- | source/libs/utils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts index c3e2bc90..1eed991b 100644 --- a/source/libs/utils.ts +++ b/source/libs/utils.ts @@ -49,6 +49,10 @@ export const getCurrentBranch = (): string => { }; export const getRepoURL = (): string => location.pathname.slice(1).split('/', 2).join('/'); +export const getRepoGQL = (): string => { + const {ownerName, repoName} = getOwnerAndRepo(); + return `owner: "${ownerName}", name: "${repoName}"`; +}; export const getOwnerAndRepo = (): { ownerName: string; |