summaryrefslogtreecommitdiff
path: root/source/github-helpers/api.ts
diff options
context:
space:
mode:
Diffstat (limited to 'source/github-helpers/api.ts')
-rw-r--r--source/github-helpers/api.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/github-helpers/api.ts b/source/github-helpers/api.ts
index 575c793e..268d16d2 100644
--- a/source/github-helpers/api.ts
+++ b/source/github-helpers/api.ts
@@ -30,7 +30,7 @@ import * as pageDetect from 'github-url-detection';
import {JsonObject, AsyncReturnType} from 'type-fest';
import optionsStorage from '../options-storage';
-import {getRepoURL} from '.';
+import {getRepo} from '.';
interface JsonError {
message: string;
@@ -105,7 +105,7 @@ export const v3 = mem(async (
const {personalToken} = await settings;
if (!query.startsWith('https')) {
- query = query.startsWith('/') ? query.slice(1) : 'repos/' + getRepoURL() + '/' + query;
+ query = query.startsWith('/') ? query.slice(1) : 'repos/' + getRepo()!.nameWithOwner + '/' + query;
}
const url = new URL(query, api3);