Rename GitReleaseApiClient file
Signed-off-by: Erik Engervall <erik.engervall@gmail.com>
This commit is contained in:
+4
-4
@@ -16,20 +16,20 @@
|
||||
|
||||
import { ConfigReader, OAuthApi } from '@backstage/core';
|
||||
|
||||
import { GitReleaseApiClient } from './PluginApiClient';
|
||||
import { GitReleaseApiClient } from './GitReleaseApiClient';
|
||||
|
||||
describe('PluginApiClient', () => {
|
||||
describe('GitReleaseApiClient', () => {
|
||||
it('should return the default plugin api client', () => {
|
||||
const configApi = new ConfigReader({});
|
||||
const githubAuthApi: OAuthApi = {
|
||||
getAccessToken: jest.fn(),
|
||||
};
|
||||
const pluginApiClient = new GitReleaseApiClient({
|
||||
const gitReleaseApiClient = new GitReleaseApiClient({
|
||||
configApi,
|
||||
githubAuthApi,
|
||||
});
|
||||
|
||||
expect(pluginApiClient).toMatchInlineSnapshot(`
|
||||
expect(gitReleaseApiClient).toMatchInlineSnapshot(`
|
||||
GitReleaseApiClient {
|
||||
"baseUrl": "https://api.github.com",
|
||||
"createRc": Object {
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { createApiRef } from '@backstage/core';
|
||||
|
||||
import { GitReleaseApi } from './PluginApiClient';
|
||||
import { GitReleaseApi } from './GitReleaseApiClient';
|
||||
|
||||
export const gitReleaseManagerApiRef = createApiRef<GitReleaseApi>({
|
||||
id: 'plugin.git-release-manager.service',
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import {
|
||||
GetBranchResult,
|
||||
GetLatestReleaseResult,
|
||||
GetRepositoryResult,
|
||||
} from '../../api/PluginApiClient';
|
||||
} from '../../api/GitReleaseApiClient';
|
||||
import { ComponentConfigCreateRc } from '../../types/types';
|
||||
import { Differ } from '../../components/Differ';
|
||||
import { getReleaseCandidateGitInfo } from '../../helpers/getReleaseCandidateGitInfo';
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import { useApi } from '@backstage/core';
|
||||
import {
|
||||
GetLatestReleaseResult,
|
||||
GetRepositoryResult,
|
||||
} from '../../../api/PluginApiClient';
|
||||
} from '../../../api/GitReleaseApiClient';
|
||||
import { CardHook, ComponentConfigCreateRc } from '../../../types/types';
|
||||
import { getReleaseCandidateGitInfo } from '../../../helpers/getReleaseCandidateGitInfo';
|
||||
import { gitReleaseManagerApiRef } from '../../../api/serviceApiRef';
|
||||
|
||||
@@ -21,7 +21,7 @@ import BarChartIcon from '@material-ui/icons/BarChart';
|
||||
import {
|
||||
GetBranchResult,
|
||||
GetLatestReleaseResult,
|
||||
} from '../../api/PluginApiClient';
|
||||
} from '../../api/GitReleaseApiClient';
|
||||
import { Differ } from '../../components/Differ';
|
||||
import { InfoCardPlus } from '../../components/InfoCardPlus';
|
||||
import { Stats } from '../Stats/Stats';
|
||||
|
||||
@@ -21,7 +21,7 @@ import { Alert, AlertTitle } from '@material-ui/lab';
|
||||
import {
|
||||
GetBranchResult,
|
||||
GetLatestReleaseResult,
|
||||
} from '../../api/PluginApiClient';
|
||||
} from '../../api/GitReleaseApiClient';
|
||||
import { ComponentConfigPatch } from '../../types/types';
|
||||
import { getBumpedTag } from '../../helpers/getBumpedTag';
|
||||
import { InfoCardPlus } from '../../components/InfoCardPlus';
|
||||
|
||||
@@ -37,7 +37,7 @@ import { useApi } from '@backstage/core';
|
||||
import {
|
||||
GetBranchResult,
|
||||
GetLatestReleaseResult,
|
||||
} from '../../api/PluginApiClient';
|
||||
} from '../../api/GitReleaseApiClient';
|
||||
import { CalverTagParts } from '../../helpers/tagParts/getCalverTagParts';
|
||||
import { CenteredCircularProgress } from '../../components/CenteredCircularProgress';
|
||||
import { ComponentConfigPatch } from '../../types/types';
|
||||
|
||||
@@ -21,7 +21,7 @@ import { useApi } from '@backstage/core';
|
||||
import {
|
||||
GetLatestReleaseResult,
|
||||
GetRecentCommitsResultSingle,
|
||||
} from '../../../api/PluginApiClient';
|
||||
} from '../../../api/GitReleaseApiClient';
|
||||
import { CalverTagParts } from '../../../helpers/tagParts/getCalverTagParts';
|
||||
import { ComponentConfigPatch, CardHook } from '../../../types/types';
|
||||
import { gitReleaseManagerApiRef } from '../../../api/serviceApiRef';
|
||||
|
||||
@@ -19,7 +19,7 @@ import { Alert, AlertTitle } from '@material-ui/lab';
|
||||
import { Typography } from '@material-ui/core';
|
||||
|
||||
import { ComponentConfigPromoteRc } from '../../types/types';
|
||||
import { GetLatestReleaseResult } from '../../api/PluginApiClient';
|
||||
import { GetLatestReleaseResult } from '../../api/GitReleaseApiClient';
|
||||
import { InfoCardPlus } from '../../components/InfoCardPlus';
|
||||
import { NoLatestRelease } from '../../components/NoLatestRelease';
|
||||
import { PromoteRcBody } from './PromoteRcBody';
|
||||
|
||||
@@ -19,7 +19,7 @@ import { Button, Typography } from '@material-ui/core';
|
||||
|
||||
import { ComponentConfigPromoteRc } from '../../types/types';
|
||||
import { Differ } from '../../components/Differ';
|
||||
import { GetLatestReleaseResult } from '../../api/PluginApiClient';
|
||||
import { GetLatestReleaseResult } from '../../api/GitReleaseApiClient';
|
||||
import { ResponseStepDialog } from '../../components/ResponseStepDialog/ResponseStepDialog';
|
||||
import { TEST_IDS } from '../../test-helpers/test-ids';
|
||||
import { usePromoteRc } from './hooks/usePromoteRc';
|
||||
|
||||
@@ -19,7 +19,7 @@ import { useAsync, useAsyncFn } from 'react-use';
|
||||
import { useApi } from '@backstage/core';
|
||||
|
||||
import { CardHook, ComponentConfigPromoteRc } from '../../../types/types';
|
||||
import { GetLatestReleaseResult } from '../../../api/PluginApiClient';
|
||||
import { GetLatestReleaseResult } from '../../../api/GitReleaseApiClient';
|
||||
import { gitReleaseManagerApiRef } from '../../../api/serviceApiRef';
|
||||
import { useProjectContext } from '../../../contexts/ProjectContext';
|
||||
import { useResponseSteps } from '../../../hooks/useResponseSteps';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import { calverRegexp } from '../../../helpers/tagParts/getCalverTagParts';
|
||||
import { GetAllReleasesResult } from '../../../api/PluginApiClient';
|
||||
import { GetAllReleasesResult } from '../../../api/GitReleaseApiClient';
|
||||
import { Project } from '../../../contexts/ProjectContext';
|
||||
import { ReleaseStats } from '../contexts/ReleaseStatsContext';
|
||||
import { semverRegexp } from '../../../helpers/tagParts/getSemverTagParts';
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
import { calverRegexp } from '../../../helpers/tagParts/getCalverTagParts';
|
||||
import { GetAllTagsResult } from '../../../api/PluginApiClient';
|
||||
import { GetAllTagsResult } from '../../../api/GitReleaseApiClient';
|
||||
import { Project } from '../../../contexts/ProjectContext';
|
||||
import { ReleaseStats } from '../contexts/ReleaseStatsContext';
|
||||
import { semverRegexp } from '../../../helpers/tagParts/getSemverTagParts';
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
import { getBumpedSemverTagParts } from './getBumpedTag';
|
||||
import { GetLatestReleaseResult } from '../api/PluginApiClient';
|
||||
import { GetLatestReleaseResult } from '../api/GitReleaseApiClient';
|
||||
import { getSemverTagParts } from './tagParts/getSemverTagParts';
|
||||
import { Project } from '../contexts/ProjectContext';
|
||||
import { SEMVER_PARTS } from '../constants/constants';
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
import { useAsync } from 'react-use';
|
||||
|
||||
import { GitReleaseApi } from '../api/PluginApiClient';
|
||||
import { GitReleaseApi } from '../api/GitReleaseApiClient';
|
||||
import { Project } from '../contexts/ProjectContext';
|
||||
|
||||
interface GetGitBatchInfo {
|
||||
|
||||
@@ -23,7 +23,7 @@ import {
|
||||
} from '@backstage/core';
|
||||
|
||||
import { gitReleaseManagerApiRef } from './api/serviceApiRef';
|
||||
import { GitReleaseApiClient } from './api/PluginApiClient';
|
||||
import { GitReleaseApiClient } from './api/GitReleaseApiClient';
|
||||
import { rootRouteRef } from './routes';
|
||||
|
||||
export { gitReleaseManagerApiRef };
|
||||
|
||||
@@ -19,7 +19,7 @@ import {
|
||||
GetLatestReleaseResult,
|
||||
GetRecentCommitsResultSingle,
|
||||
GitReleaseApi,
|
||||
} from '../api/PluginApiClient';
|
||||
} from '../api/GitReleaseApiClient';
|
||||
import { CalverTagParts } from '../helpers/tagParts/getCalverTagParts';
|
||||
import { Project } from '../contexts/ProjectContext';
|
||||
import { getReleaseCandidateGitInfo } from '../helpers/getReleaseCandidateGitInfo';
|
||||
|
||||
Reference in New Issue
Block a user