|
|
|
@@ -12,6 +12,240 @@ import { default as React_2 } from 'react';
|
|
|
|
|
import { ReactNode } from 'react';
|
|
|
|
|
import { RouteRef } from '@backstage/core-plugin-api';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "A_CALVER_VERSION" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const A_CALVER_VERSION = '2020.01.01_1';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "A_SEMVER_VERSION" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const A_SEMVER_VERSION = '1.2.3';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "AlertError" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
export interface AlertError {
|
|
|
|
|
// (undocumented)
|
|
|
|
|
subtitle: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
title?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "calverRegexp" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const calverRegexp: RegExp;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "CalverTagParts" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
type CalverTagParts = {
|
|
|
|
|
prefix: string;
|
|
|
|
|
calver: string;
|
|
|
|
|
patch: number;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "ComponentConfig" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
export type ComponentConfig<OnSuccessArgs> = {
|
|
|
|
|
omit?: boolean;
|
|
|
|
|
onSuccess?: (args: OnSuccessArgs) => Promise<void> | void;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
declare namespace components {
|
|
|
|
|
export {
|
|
|
|
|
Differ,
|
|
|
|
|
Divider,
|
|
|
|
|
InfoCardPlus,
|
|
|
|
|
LinearProgressWithLabel,
|
|
|
|
|
NoLatestRelease,
|
|
|
|
|
ResponseStepDialog,
|
|
|
|
|
ResponseStepList,
|
|
|
|
|
ResponseStepListItem,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
export { components };
|
|
|
|
|
|
|
|
|
|
declare namespace constants {
|
|
|
|
|
export {
|
|
|
|
|
SEMVER_PARTS,
|
|
|
|
|
DISABLE_CACHE,
|
|
|
|
|
VERSIONING_STRATEGIES,
|
|
|
|
|
TAG_OBJECT_MESSAGE,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
export { constants };
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "GetBranchResult" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "createMockBranch" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public
|
|
|
|
|
const createMockBranch: ({
|
|
|
|
|
...rest
|
|
|
|
|
}?: Partial<GetBranchResult>) => GetBranchResult['branch'];
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "GetCommitResult" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "createMockCommit" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const createMockCommit: (
|
|
|
|
|
overrides: Partial<GetCommitResult['commit']>,
|
|
|
|
|
) => GetCommitResult;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "GetRecentCommitsResultSingle" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "createMockRecentCommit" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public
|
|
|
|
|
const createMockRecentCommit: ({
|
|
|
|
|
...rest
|
|
|
|
|
}: Partial<GetRecentCommitsResultSingle>) => GetRecentCommitsResultSingle;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "GetLatestReleaseResult" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "createMockRelease" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public
|
|
|
|
|
const createMockRelease: ({
|
|
|
|
|
id,
|
|
|
|
|
prerelease,
|
|
|
|
|
...rest
|
|
|
|
|
}?: Partial<
|
|
|
|
|
NonNullable<GetLatestReleaseResult['latestRelease']>
|
|
|
|
|
>) => NonNullable<GetLatestReleaseResult['latestRelease']>;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "GetTagResult" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "createMockTag" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const createMockTag: (overrides: Partial<GetTagResult['tag']>) => GetTagResult;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "CreateRcOnSuccessArgs" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
export interface CreateRcOnSuccessArgs {
|
|
|
|
|
// (undocumented)
|
|
|
|
|
comparisonUrl: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
createdTag: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
gitReleaseName: string | null;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
gitReleaseUrl: string;
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "UseCreateReleaseCandidate" needs to be exported by the entry point index.d.ts
|
|
|
|
|
//
|
|
|
|
|
// (undocumented)
|
|
|
|
|
input: Omit<UseCreateReleaseCandidate, 'onSuccess'>;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
previousTag?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "DifferProps" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "Differ" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const Differ: ({ current, next, icon }: DifferProps) => JSX.Element;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "DISABLE_CACHE" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const DISABLE_CACHE: {
|
|
|
|
|
readonly headers: {
|
|
|
|
|
readonly 'If-None-Match': '';
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "Divider" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const Divider: () => JSX.Element;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "SemverTagParts" needs to be exported by the entry point index.d.ts
|
|
|
|
|
//
|
|
|
|
|
// @public
|
|
|
|
|
function getBumpedSemverTagParts(
|
|
|
|
|
tagParts: SemverTagParts,
|
|
|
|
|
semverBumpLevel: keyof typeof SEMVER_PARTS,
|
|
|
|
|
): {
|
|
|
|
|
bumpedTagParts: {
|
|
|
|
|
prefix: string;
|
|
|
|
|
major: number;
|
|
|
|
|
minor: number;
|
|
|
|
|
patch: number;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// @public
|
|
|
|
|
function getBumpedTag(options: {
|
|
|
|
|
project: Project;
|
|
|
|
|
tag: string;
|
|
|
|
|
bumpLevel: keyof typeof SEMVER_PARTS;
|
|
|
|
|
}):
|
|
|
|
|
| {
|
|
|
|
|
bumpedTag: string;
|
|
|
|
|
tagParts: CalverTagParts;
|
|
|
|
|
error: undefined;
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
bumpedTag: string;
|
|
|
|
|
tagParts: {
|
|
|
|
|
prefix: string;
|
|
|
|
|
major: number;
|
|
|
|
|
minor: number;
|
|
|
|
|
patch: number;
|
|
|
|
|
};
|
|
|
|
|
error: undefined;
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
error: AlertError;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "getCalverTagParts" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
function getCalverTagParts(tag: string):
|
|
|
|
|
| {
|
|
|
|
|
error: AlertError;
|
|
|
|
|
tagParts?: undefined;
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
tagParts: CalverTagParts;
|
|
|
|
|
error?: undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "getSemverTagParts" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
function getSemverTagParts(tag: string):
|
|
|
|
|
| {
|
|
|
|
|
error: AlertError;
|
|
|
|
|
tagParts?: undefined;
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
tagParts: SemverTagParts;
|
|
|
|
|
error?: undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "getShortCommitHash" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
function getShortCommitHash(hash: string): string;
|
|
|
|
|
|
|
|
|
|
// @public
|
|
|
|
|
function getTagParts(options: { project: Project; tag: string }):
|
|
|
|
|
| {
|
|
|
|
|
error: AlertError;
|
|
|
|
|
tagParts?: undefined;
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
tagParts: CalverTagParts;
|
|
|
|
|
error?: undefined;
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
tagParts: SemverTagParts;
|
|
|
|
|
error?: undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "GitReleaseApi" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "gitReleaseManagerApiRef" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
@@ -35,6 +269,27 @@ export const gitReleaseManagerPlugin: BackstagePlugin<
|
|
|
|
|
{}
|
|
|
|
|
>;
|
|
|
|
|
|
|
|
|
|
declare namespace helpers {
|
|
|
|
|
export {
|
|
|
|
|
calverRegexp,
|
|
|
|
|
getCalverTagParts,
|
|
|
|
|
CalverTagParts,
|
|
|
|
|
getBumpedSemverTagParts,
|
|
|
|
|
getBumpedTag,
|
|
|
|
|
getSemverTagParts,
|
|
|
|
|
semverRegexp,
|
|
|
|
|
getShortCommitHash,
|
|
|
|
|
getTagParts,
|
|
|
|
|
isCalverTagParts,
|
|
|
|
|
isProjectValid,
|
|
|
|
|
validateTagName,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
export { helpers };
|
|
|
|
|
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const InfoCardPlus: (props: { children?: React_2.ReactNode }) => JSX.Element;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "internals" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
@@ -45,10 +300,492 @@ export const internals: {
|
|
|
|
|
testHelpers: typeof testHelpers;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warnings were encountered during analysis:
|
|
|
|
|
// Warning: (ae-missing-release-tag) "isCalverTagParts" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// src/index.d.ts:9:5 - (ae-forgotten-export) The symbol "components" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// src/index.d.ts:10:5 - (ae-forgotten-export) The symbol "constants" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// src/index.d.ts:11:5 - (ae-forgotten-export) The symbol "helpers" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// src/index.d.ts:12:5 - (ae-forgotten-export) The symbol "testHelpers" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
function isCalverTagParts(
|
|
|
|
|
project: Project,
|
|
|
|
|
_tagParts: unknown,
|
|
|
|
|
): _tagParts is CalverTagParts;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "isProjectValid" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
function isProjectValid(project: any): project is Project;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "LinearProgressWithLabel" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
function LinearProgressWithLabel(props: {
|
|
|
|
|
progress: number;
|
|
|
|
|
responseSteps: ResponseStep[];
|
|
|
|
|
}): JSX.Element;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "MOCK_RELEASE_BRANCH_NAME_CALVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const MOCK_RELEASE_BRANCH_NAME_CALVER: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "MOCK_RELEASE_BRANCH_NAME_SEMVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const MOCK_RELEASE_BRANCH_NAME_SEMVER: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "MOCK_RELEASE_CANDIDATE_TAG_NAME_CALVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const MOCK_RELEASE_CANDIDATE_TAG_NAME_CALVER: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "MOCK_RELEASE_CANDIDATE_TAG_NAME_SEMVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const MOCK_RELEASE_CANDIDATE_TAG_NAME_SEMVER: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "MOCK_RELEASE_NAME_CALVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const MOCK_RELEASE_NAME_CALVER: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "MOCK_RELEASE_NAME_SEMVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const MOCK_RELEASE_NAME_SEMVER: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "MOCK_RELEASE_VERSION_TAG_NAME_CALVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const MOCK_RELEASE_VERSION_TAG_NAME_CALVER: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "MOCK_RELEASE_VERSION_TAG_NAME_SEMVER" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const MOCK_RELEASE_VERSION_TAG_NAME_SEMVER: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockBumpedTag" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockBumpedTag = 'rc-2020.01.01_1337';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockCalverProject" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockCalverProject: Project;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockCtaMessage" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockCtaMessage = 'Patch Release Candidate';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockDefaultBranch" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockDefaultBranch = 'mock_defaultBranch';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockEmail" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockEmail = 'mock_email';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "getReleaseCandidateGitInfo" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockNextGitInfoCalver" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockNextGitInfoCalver: ReturnType<typeof getReleaseCandidateGitInfo>;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockNextGitInfoSemver" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockNextGitInfoSemver: ReturnType<typeof getReleaseCandidateGitInfo>;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockOwner" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockOwner = 'mock_owner';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockReleaseBranch" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockReleaseBranch: {
|
|
|
|
|
name: string;
|
|
|
|
|
links: {
|
|
|
|
|
html: string;
|
|
|
|
|
};
|
|
|
|
|
commit: {
|
|
|
|
|
sha: string;
|
|
|
|
|
commit: {
|
|
|
|
|
tree: {
|
|
|
|
|
sha: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockReleaseCandidateCalver" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockReleaseCandidateCalver: {
|
|
|
|
|
targetCommitish: string;
|
|
|
|
|
tagName: string;
|
|
|
|
|
prerelease: boolean;
|
|
|
|
|
id: number;
|
|
|
|
|
htmlUrl: string;
|
|
|
|
|
body?: string | null | undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockReleaseCandidateSemver" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockReleaseCandidateSemver: {
|
|
|
|
|
targetCommitish: string;
|
|
|
|
|
tagName: string;
|
|
|
|
|
prerelease: boolean;
|
|
|
|
|
id: number;
|
|
|
|
|
htmlUrl: string;
|
|
|
|
|
body?: string | null | undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "ReleaseStats" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockReleaseStats" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockReleaseStats: ReleaseStats;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockReleaseVersionCalver" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockReleaseVersionCalver: {
|
|
|
|
|
targetCommitish: string;
|
|
|
|
|
tagName: string;
|
|
|
|
|
prerelease: boolean;
|
|
|
|
|
id: number;
|
|
|
|
|
htmlUrl: string;
|
|
|
|
|
body?: string | null | undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockReleaseVersionSemver" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockReleaseVersionSemver: {
|
|
|
|
|
targetCommitish: string;
|
|
|
|
|
tagName: string;
|
|
|
|
|
prerelease: boolean;
|
|
|
|
|
id: number;
|
|
|
|
|
htmlUrl: string;
|
|
|
|
|
body?: string | null | undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockRepo" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockRepo = 'mock_repo';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockSearchCalver" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockSearchCalver: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockSearchSemver" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockSearchSemver: string;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockSelectedPatchCommit" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockSelectedPatchCommit: {
|
|
|
|
|
htmlUrl: string;
|
|
|
|
|
sha: string;
|
|
|
|
|
author: {
|
|
|
|
|
htmlUrl?: string | undefined;
|
|
|
|
|
login?: string | undefined;
|
|
|
|
|
};
|
|
|
|
|
commit: {
|
|
|
|
|
message: string;
|
|
|
|
|
};
|
|
|
|
|
firstParentSha?: string | undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockSemverProject" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockSemverProject: Project;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockTagParts" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockTagParts: CalverTagParts;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockUser" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockUser: {
|
|
|
|
|
username: string;
|
|
|
|
|
email: string;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "mockUsername" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const mockUsername = 'mock_username';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "NoLatestRelease" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const NoLatestRelease: () => JSX.Element;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "PatchOnSuccessArgs" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
export interface PatchOnSuccessArgs {
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "UsePatch" needs to be exported by the entry point index.d.ts
|
|
|
|
|
//
|
|
|
|
|
// (undocumented)
|
|
|
|
|
input: Omit<UsePatch, 'onSuccess'>;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
patchCommitMessage: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
patchCommitUrl: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
patchedTag: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
previousTag: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
updatedReleaseName: string | null;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
updatedReleaseUrl: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "Project" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
export interface Project {
|
|
|
|
|
isProvidedViaProps: boolean;
|
|
|
|
|
owner: string;
|
|
|
|
|
repo: string;
|
|
|
|
|
versioningStrategy: keyof typeof VERSIONING_STRATEGIES;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "PromoteRcOnSuccessArgs" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
export interface PromoteRcOnSuccessArgs {
|
|
|
|
|
// (undocumented)
|
|
|
|
|
gitReleaseName: string | null;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
gitReleaseUrl: string;
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "UsePromoteRc" needs to be exported by the entry point index.d.ts
|
|
|
|
|
//
|
|
|
|
|
// (undocumented)
|
|
|
|
|
input: Omit<UsePromoteRc, 'onSuccess'>;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
previousTag: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
previousTagUrl: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
updatedTag: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
updatedTagUrl: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "ResponseStep" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
export interface ResponseStep {
|
|
|
|
|
// (undocumented)
|
|
|
|
|
icon?: 'success' | 'failure';
|
|
|
|
|
// (undocumented)
|
|
|
|
|
link?: string;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
message: React.ReactNode;
|
|
|
|
|
// (undocumented)
|
|
|
|
|
secondaryMessage?: string | React.ReactNode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "DialogProps" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "ResponseStepDialog" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const ResponseStepDialog: ({
|
|
|
|
|
progress,
|
|
|
|
|
responseSteps,
|
|
|
|
|
title,
|
|
|
|
|
}: DialogProps) => JSX.Element;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "ResponseStepListProps" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "ResponseStepList" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const ResponseStepList: ({
|
|
|
|
|
responseSteps,
|
|
|
|
|
animationDelay,
|
|
|
|
|
loading,
|
|
|
|
|
denseList,
|
|
|
|
|
children,
|
|
|
|
|
}: PropsWithChildren<ResponseStepListProps>) => JSX.Element;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-forgotten-export) The symbol "ResponseStepListItemProps" needs to be exported by the entry point index.d.ts
|
|
|
|
|
// Warning: (ae-missing-release-tag) "ResponseStepListItem" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const ResponseStepListItem: ({
|
|
|
|
|
responseStep,
|
|
|
|
|
animationDelay,
|
|
|
|
|
}: ResponseStepListItemProps) => JSX.Element;
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "SEMVER_PARTS" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const SEMVER_PARTS: {
|
|
|
|
|
major: 'major';
|
|
|
|
|
minor: 'minor';
|
|
|
|
|
patch: 'patch';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "semverRegexp" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const semverRegexp: RegExp;
|
|
|
|
|
|
|
|
|
|
declare namespace stats {
|
|
|
|
|
export { mockReleaseStats };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "TAG_OBJECT_MESSAGE" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const TAG_OBJECT_MESSAGE =
|
|
|
|
|
'Tag generated by your friendly neighborhood Backstage Release Manager';
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "TEST_IDS" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const TEST_IDS: {
|
|
|
|
|
info: {
|
|
|
|
|
info: string;
|
|
|
|
|
infoFeaturePlus: string;
|
|
|
|
|
};
|
|
|
|
|
createRc: {
|
|
|
|
|
cta: string;
|
|
|
|
|
semverSelect: string;
|
|
|
|
|
};
|
|
|
|
|
promoteRc: {
|
|
|
|
|
mockedPromoteRcBody: string;
|
|
|
|
|
notRcWarning: string;
|
|
|
|
|
promoteRc: string;
|
|
|
|
|
cta: string;
|
|
|
|
|
};
|
|
|
|
|
patch: {
|
|
|
|
|
error: string;
|
|
|
|
|
loading: string;
|
|
|
|
|
notPrerelease: string;
|
|
|
|
|
body: string;
|
|
|
|
|
};
|
|
|
|
|
form: {
|
|
|
|
|
owner: {
|
|
|
|
|
loading: string;
|
|
|
|
|
select: string;
|
|
|
|
|
error: string;
|
|
|
|
|
empty: string;
|
|
|
|
|
};
|
|
|
|
|
repo: {
|
|
|
|
|
loading: string;
|
|
|
|
|
select: string;
|
|
|
|
|
error: string;
|
|
|
|
|
empty: string;
|
|
|
|
|
};
|
|
|
|
|
versioningStrategy: {
|
|
|
|
|
radioGroup: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
components: {
|
|
|
|
|
divider: string;
|
|
|
|
|
noLatestRelease: string;
|
|
|
|
|
circularProgress: string;
|
|
|
|
|
responseStepListDialogContent: string;
|
|
|
|
|
responseStepListItem: string;
|
|
|
|
|
responseStepListItemIconSuccess: string;
|
|
|
|
|
responseStepListItemIconFailure: string;
|
|
|
|
|
responseStepListItemIconLink: string;
|
|
|
|
|
responseStepListItemIconDefault: string;
|
|
|
|
|
differ: {
|
|
|
|
|
current: string;
|
|
|
|
|
next: string;
|
|
|
|
|
icons: {
|
|
|
|
|
tag: string;
|
|
|
|
|
branch: string;
|
|
|
|
|
github: string;
|
|
|
|
|
slack: string;
|
|
|
|
|
versioning: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
linearProgressWithLabel: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
declare namespace testHelpers {
|
|
|
|
|
export { stats, testHelpers_2 as testHelpers, testIds };
|
|
|
|
|
}
|
|
|
|
|
export { testHelpers };
|
|
|
|
|
|
|
|
|
|
declare namespace testHelpers_2 {
|
|
|
|
|
export {
|
|
|
|
|
mockUsername,
|
|
|
|
|
mockEmail,
|
|
|
|
|
mockOwner,
|
|
|
|
|
mockRepo,
|
|
|
|
|
A_CALVER_VERSION,
|
|
|
|
|
MOCK_RELEASE_NAME_CALVER,
|
|
|
|
|
MOCK_RELEASE_BRANCH_NAME_CALVER,
|
|
|
|
|
MOCK_RELEASE_CANDIDATE_TAG_NAME_CALVER,
|
|
|
|
|
MOCK_RELEASE_VERSION_TAG_NAME_CALVER,
|
|
|
|
|
A_SEMVER_VERSION,
|
|
|
|
|
MOCK_RELEASE_NAME_SEMVER,
|
|
|
|
|
MOCK_RELEASE_BRANCH_NAME_SEMVER,
|
|
|
|
|
MOCK_RELEASE_CANDIDATE_TAG_NAME_SEMVER,
|
|
|
|
|
MOCK_RELEASE_VERSION_TAG_NAME_SEMVER,
|
|
|
|
|
createMockTag,
|
|
|
|
|
createMockCommit,
|
|
|
|
|
mockUser,
|
|
|
|
|
mockSemverProject,
|
|
|
|
|
mockCalverProject,
|
|
|
|
|
mockSearchCalver,
|
|
|
|
|
mockSearchSemver,
|
|
|
|
|
mockDefaultBranch,
|
|
|
|
|
mockNextGitInfoSemver,
|
|
|
|
|
mockNextGitInfoCalver,
|
|
|
|
|
mockTagParts,
|
|
|
|
|
mockCtaMessage,
|
|
|
|
|
mockBumpedTag,
|
|
|
|
|
createMockRelease,
|
|
|
|
|
mockReleaseCandidateCalver,
|
|
|
|
|
mockReleaseVersionCalver,
|
|
|
|
|
mockReleaseCandidateSemver,
|
|
|
|
|
mockReleaseVersionSemver,
|
|
|
|
|
createMockBranch,
|
|
|
|
|
mockReleaseBranch,
|
|
|
|
|
createMockRecentCommit,
|
|
|
|
|
mockSelectedPatchCommit,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
declare namespace testIds {
|
|
|
|
|
export { TEST_IDS };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const validateTagName: (options: { project: Project; tagName?: string }) =>
|
|
|
|
|
| {
|
|
|
|
|
tagNameError: null;
|
|
|
|
|
}
|
|
|
|
|
| {
|
|
|
|
|
tagNameError: AlertError | undefined;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Warning: (ae-missing-release-tag) "VERSIONING_STRATEGIES" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
|
|
|
//
|
|
|
|
|
// @public (undocumented)
|
|
|
|
|
const VERSIONING_STRATEGIES: {
|
|
|
|
|
semver: 'semver';
|
|
|
|
|
calver: 'calver';
|
|
|
|
|
};
|
|
|
|
|
```
|
|
|
|
|