()
| 15 | let focusedFileContainer: HTMLElement | undefined; |
| 16 | |
| 17 | async function getMergeBaseReference(): Promise<string> { |
| 18 | const {base, head} = getBranches(); |
| 19 | // This v3 response is relatively large, but it doesn't seem to be available on v4 |
| 20 | // Cache buster due to: https://github.com/refined-github/refined-github/issues/7312 |
| 21 | const response = await api.v3(`compare/${base.relative}...${head.relative}?cachebust=${Date.now()}`); |
| 22 | return response.merge_base_commit.sha; // #4679 |
| 23 | } |
| 24 | |
| 25 | async function getHeadReference(): Promise<string> { |
| 26 | const {base} = getBranches(); |
no test coverage detected