summaryrefslogtreecommitdiff
path: root/source/features/update-pr-from-base-branch.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/update-pr-from-base-branch.tsx')
-rw-r--r--source/features/update-pr-from-base-branch.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/update-pr-from-base-branch.tsx b/source/features/update-pr-from-base-branch.tsx
index 6ec00a46..c25fe428 100644
--- a/source/features/update-pr-from-base-branch.tsx
+++ b/source/features/update-pr-from-base-branch.tsx
@@ -7,7 +7,7 @@ import * as pageDetect from 'github-url-detection';
import features from '.';
import * as api from '../github-helpers/api';
import observeElement from '../helpers/simplified-element-observer';
-import {getRepoURL, getDiscussionNumber} from '../github-helpers';
+import {getRepoURL, getConversationNumber} from '../github-helpers';
let observer: MutationObserver;
@@ -19,7 +19,7 @@ function getBranches(): {base: string; head: string} {
}
async function mergeBranches(): Promise<AnyObject> {
- return api.v3(`repos/${getRepoURL()}/pulls/${getDiscussionNumber()!}/update-branch`, {
+ return api.v3(`repos/${getRepoURL()}/pulls/${getConversationNumber()!}/update-branch`, {
method: 'PUT',
headers: {
Accept: 'application/vnd.github.lydian-preview+json'