summaryrefslogtreecommitdiff
path: root/source/features/latest-tag-button.tsx
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2020-11-18 19:55:59 -0500
committerGravatar GitHub <noreply@github.com> 2020-11-18 18:55:59 -0600
commita935456acab0c7bdc021829e18ce20230e18c752 (patch)
treee61eed13a433381ba223a4ca962e904c8740fc91 /source/features/latest-tag-button.tsx
parentcab33f6f47c4eef0a3bc793f2004767f34b6abe9 (diff)
downloadrefined-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/latest-tag-button.tsx')
-rw-r--r--source/features/latest-tag-button.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/features/latest-tag-button.tsx b/source/features/latest-tag-button.tsx
index a48937d4..3ddc6e8f 100644
--- a/source/features/latest-tag-button.tsx
+++ b/source/features/latest-tag-button.tsx
@@ -12,7 +12,7 @@ import pluralize from '../helpers/pluralize';
import GitHubURL from '../github-helpers/github-url';
import {groupButtons} from '../github-helpers/group-buttons';
import getDefaultBranch from '../github-helpers/get-default-branch';
-import {buildRepoURL, getCurrentBranch, getRepoGQL, getLatestVersionTag, getRepo} from '../github-helpers';
+import {buildRepoURL, getCurrentBranch, getLatestVersionTag, getRepo} from '../github-helpers';
interface RepoPublishState {
latestTag: string | false;
@@ -21,7 +21,7 @@ interface RepoPublishState {
const getRepoPublishState = cache.function(async (): Promise<RepoPublishState> => {
const {repository} = await api.v4(`
- repository(${getRepoGQL()}) {
+ repository() {
refs(first: 20, refPrefix: "refs/tags/", orderBy: {
field: TAG_COMMIT_DATE,
direction: DESC