diff options
author | 2020-11-18 19:55:59 -0500 | |
---|---|---|
committer | 2020-11-18 18:55:59 -0600 | |
commit | a935456acab0c7bdc021829e18ce20230e18c752 (patch) | |
tree | e61eed13a433381ba223a4ca962e904c8740fc91 /source/features/restore-file.tsx | |
parent | cab33f6f47c4eef0a3bc793f2004767f34b6abe9 (diff) | |
download | refined-github-a935456acab0c7bdc021829e18ce20230e18c752.tar.gz refined-github-a935456acab0c7bdc021829e18ce20230e18c752.tar.zst refined-github-a935456acab0c7bdc021829e18ce20230e18c752.zip |
Lint (#3723)20.11.19
Diffstat (limited to 'source/features/restore-file.tsx')
-rw-r--r-- | source/features/restore-file.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/features/restore-file.tsx b/source/features/restore-file.tsx index 44b881f1..67170630 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 {getConversationNumber, getRepoGQL, getCurrentBranch, getPRHeadRepo} from '../github-helpers'; +import {getConversationNumber, getCurrentBranch, getPRHeadRepo} from '../github-helpers'; function showError(menuItem: HTMLButtonElement, error: string): void { menuItem.disabled = true; @@ -22,7 +22,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()}) { + repository() { pullRequest(number: ${getConversationNumber()!}) { baseRefOid } @@ -33,7 +33,7 @@ const getBaseReference = onetime(async (): Promise<string> => { async function getFile(filePath: string): Promise<{isTruncated: boolean; text: string} | null> { const {repository} = await api.v4(` - repository(${getRepoGQL()}) { + repository() { file: object(expression: "${await getBaseReference()}:${filePath}") { ... on Blob { isTruncated |