From 29de9091cff86638ede92798de61e5db1fc3dce0 Mon Sep 17 00:00:00 2001 From: Paul Cowan Date: Fri, 7 Oct 2022 14:54:21 +0100 Subject: [PATCH] rename IssuesByRepoOptions to GithubIssuesByRepoOptions Signed-off-by: Paul Cowan --- plugins/github-issues/api-report.md | 2 +- plugins/github-issues/src/api/gitHubIssuesApi.ts | 6 +++--- .../github-issues/src/hooks/useGetIssuesByRepoFromGitHub.ts | 4 ++-- plugins/github-issues/src/index.ts | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/github-issues/api-report.md b/plugins/github-issues/api-report.md index 12b0653acc..41b4f87064 100644 --- a/plugins/github-issues/api-report.md +++ b/plugins/github-issues/api-report.md @@ -56,7 +56,7 @@ export type GitHubIssuesProps = { }; // @public (undocumented) -export interface GithubIssuesByRepoOptions { +export interface GitubIssuesByRepoOptions { // (undocumented) filterBy?: GithubIssuesFilters; // (undocumented) diff --git a/plugins/github-issues/src/api/gitHubIssuesApi.ts b/plugins/github-issues/src/api/gitHubIssuesApi.ts index 12d38ad3c8..b4be445d13 100644 --- a/plugins/github-issues/src/api/gitHubIssuesApi.ts +++ b/plugins/github-issues/src/api/gitHubIssuesApi.ts @@ -96,7 +96,7 @@ export interface GithubIssuesOrdering { /** * @public */ -export interface IssuesByRepoOptions { +export interface GitubIssuesByRepoOptions { filterBy?: GithubIssuesFilters; orderBy?: GithubIssuesOrdering; } @@ -137,7 +137,7 @@ export const gitHubIssuesApi = ( field: 'UPDATED_AT', direction: 'DESC', }, - }: IssuesByRepoOptions = {}, + }: GitubIssuesByRepoOptions = {}, ): Promise => { const graphql = await getOctokit(); const safeNames: Array = []; @@ -224,7 +224,7 @@ function createIssueByRepoQuery( owner: string; }>, itemsPerRepo: number, - { filterBy, orderBy }: IssuesByRepoOptions, + { filterBy, orderBy }: GitubIssuesByRepoOptions, ): string { const fragment = ` fragment issues on Repository { diff --git a/plugins/github-issues/src/hooks/useGetIssuesByRepoFromGitHub.ts b/plugins/github-issues/src/hooks/useGetIssuesByRepoFromGitHub.ts index 670cb0596a..693be9e4d9 100644 --- a/plugins/github-issues/src/hooks/useGetIssuesByRepoFromGitHub.ts +++ b/plugins/github-issues/src/hooks/useGetIssuesByRepoFromGitHub.ts @@ -16,12 +16,12 @@ import { useApi } from '@backstage/core-plugin-api'; import useAsyncRetry from 'react-use/lib/useAsyncRetry'; -import { gitHubIssuesApiRef, IssuesByRepoOptions } from '../api'; +import { gitHubIssuesApiRef, GitubIssuesByRepoOptions } from '../api'; export const useGetIssuesByRepoFromGitHub = ( repos: Array, itemsPerRepo: number, - options?: IssuesByRepoOptions, + options?: GitubIssuesByRepoOptions, ) => { const gitHubIssuesApi = useApi(gitHubIssuesApiRef); diff --git a/plugins/github-issues/src/index.ts b/plugins/github-issues/src/index.ts index e6447a69c7..7717ba5f33 100644 --- a/plugins/github-issues/src/index.ts +++ b/plugins/github-issues/src/index.ts @@ -23,5 +23,5 @@ export type { GitHubIssuesProps } from './components/GitHubIssues'; export type { GithubIssuesFilters, GithubIssuesOrdering, - IssuesByRepoOptions, + GitubIssuesByRepoOptions, } from './api/gitHubIssuesApi';