summaryrefslogtreecommitdiff
path: root/source/features/show-associated-branch-prs-on-fork.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'source/features/show-associated-branch-prs-on-fork.tsx')
-rw-r--r--source/features/show-associated-branch-prs-on-fork.tsx7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/features/show-associated-branch-prs-on-fork.tsx b/source/features/show-associated-branch-prs-on-fork.tsx
index e9c24624..636bf3f1 100644
--- a/source/features/show-associated-branch-prs-on-fork.tsx
+++ b/source/features/show-associated-branch-prs-on-fork.tsx
@@ -8,7 +8,7 @@ import PullRequestIcon from 'octicon/git-pull-request.svg';
import features from '.';
import * as api from '../github-helpers/api';
import observeElement from '../helpers/simplified-element-observer';
-import {getRepoGQL, getRepoURL} from '../github-helpers';
+import {getRepoGQL, getRepoURL, upperCaseFirst} from '../github-helpers';
interface PullRequest {
number: number;
@@ -59,11 +59,6 @@ const getPullRequestsAssociatedWithBranch = cache.function(async (): Promise<Rec
cacheKey: () => 'associatedBranchPullRequests:' + getRepoURL()
});
-// https://github.com/idimetrix/text-case/blob/master/packages/upper-case-first/src/index.ts
-function upperCaseFirst(input: string): string {
- return input.charAt(0).toUpperCase() + input.slice(1).toLowerCase();
-}
-
const stateClass: Record<string, string> = {
Open: '--green',
Closed: '--red',