summaryrefslogtreecommitdiff
path: root/source/features/restore-file.tsx
diff options
context:
space:
mode:
authorGravatar Flo Edelmann <florian-edelmann@online.de> 2020-07-03 00:29:52 +0200
committerGravatar GitHub <noreply@github.com> 2020-07-03 00:29:52 +0200
commitdaf633137ec08e6f5647a6f8bb0b02d5dce58ef9 (patch)
treea4263d323bd4b963a7e6168800a0126f3f6b9c2d /source/features/restore-file.tsx
parent19e2a375c34c0dc18462a2b8a9bb4ff6bb9c6590 (diff)
downloadrefined-github-daf633137ec08e6f5647a6f8bb0b02d5dce58ef9.tar.gz
refined-github-daf633137ec08e6f5647a6f8bb0b02d5dce58ef9.tar.zst
refined-github-daf633137ec08e6f5647a6f8bb0b02d5dce58ef9.zip
Rename `discussion` → `conversation` (#3308)
Diffstat (limited to 'source/features/restore-file.tsx')
-rw-r--r--source/features/restore-file.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/restore-file.tsx b/source/features/restore-file.tsx
index e5722771..4643f72b 100644
--- a/source/features/restore-file.tsx
+++ b/source/features/restore-file.tsx
@@ -8,7 +8,7 @@ import features from '.';
import * as api from '../github-helpers/api';
import fetchDom from '../helpers/fetch-dom';
import postForm from '../helpers/post-form';
-import {getDiscussionNumber, getRepoGQL, getRepoURL, getCurrentBranch} from '../github-helpers';
+import {getConversationNumber, getRepoGQL, getRepoURL, getCurrentBranch} from '../github-helpers';
function showError(menuItem: HTMLButtonElement, error: string): void {
menuItem.disabled = true;
@@ -23,7 +23,7 @@ This value is not consistently available on the page (appears in `/files` but no
const getBaseReference = onetime(async (): Promise<string> => {
const {repository} = await api.v4(`
repository(${getRepoGQL()}) {
- pullRequest(number: ${getDiscussionNumber()!}) {
+ pullRequest(number: ${getConversationNumber()!}) {
baseRefOid
}
}