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/release-download-count.tsx | |
parent | cab33f6f47c4eef0a3bc793f2004767f34b6abe9 (diff) | |
download | refined-github-20.11.19.tar.gz refined-github-20.11.19.tar.zst refined-github-20.11.19.zip |
Lint (#3723)20.11.19
Diffstat (limited to 'source/features/release-download-count.tsx')
-rw-r--r-- | source/features/release-download-count.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/features/release-download-count.tsx b/source/features/release-download-count.tsx index d65479bf..7108069c 100644 --- a/source/features/release-download-count.tsx +++ b/source/features/release-download-count.tsx @@ -6,7 +6,6 @@ import * as pageDetect from 'github-url-detection'; import features from '.'; import * as api from '../github-helpers/api'; -import {getRepoGQL} from '../github-helpers'; interface Asset { name: string; @@ -15,7 +14,7 @@ interface Asset { type Tag = Record<string, Asset[]>; async function getAssetsForTag(tags: string[]): Promise<Tag> { const {repository} = await api.v4(` - repository(${getRepoGQL()}) { + repository() { ${tags.map(tag => ` ${api.escapeKey(tag)}: release(tagName:"${tag}") { releaseAssets(first: 100) { |