rename IssuesByRepoOptions to GithubIssuesByRepoOptions
Signed-off-by: Paul Cowan <paul.cowan@cutting.scot>
This commit is contained in:
@@ -56,7 +56,7 @@ export type GitHubIssuesProps = {
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export interface GithubIssuesByRepoOptions {
|
||||
export interface GitubIssuesByRepoOptions {
|
||||
// (undocumented)
|
||||
filterBy?: GithubIssuesFilters;
|
||||
// (undocumented)
|
||||
|
||||
@@ -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<IssuesByRepo> => {
|
||||
const graphql = await getOctokit();
|
||||
const safeNames: Array<string> = [];
|
||||
@@ -224,7 +224,7 @@ function createIssueByRepoQuery(
|
||||
owner: string;
|
||||
}>,
|
||||
itemsPerRepo: number,
|
||||
{ filterBy, orderBy }: IssuesByRepoOptions,
|
||||
{ filterBy, orderBy }: GitubIssuesByRepoOptions,
|
||||
): string {
|
||||
const fragment = `
|
||||
fragment issues on Repository {
|
||||
|
||||
@@ -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<string>,
|
||||
itemsPerRepo: number,
|
||||
options?: IssuesByRepoOptions,
|
||||
options?: GitubIssuesByRepoOptions,
|
||||
) => {
|
||||
const gitHubIssuesApi = useApi(gitHubIssuesApiRef);
|
||||
|
||||
|
||||
@@ -23,5 +23,5 @@ export type { GitHubIssuesProps } from './components/GitHubIssues';
|
||||
export type {
|
||||
GithubIssuesFilters,
|
||||
GithubIssuesOrdering,
|
||||
IssuesByRepoOptions,
|
||||
GitubIssuesByRepoOptions,
|
||||
} from './api/gitHubIssuesApi';
|
||||
|
||||
Reference in New Issue
Block a user