refactor: rename to avoid breaking changes
Signed-off-by: Sam Robson <srobson@gocardless.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-github-deployments': minor
|
||||
'@backstage/plugin-github-deployments': patch
|
||||
---
|
||||
|
||||
Add deployment statuses to the GithubDeployments plugin
|
||||
|
||||
@@ -81,7 +81,7 @@ type QueryParams = {
|
||||
host: string | undefined;
|
||||
owner: string;
|
||||
repo: string;
|
||||
lastDeployments: number;
|
||||
last: number;
|
||||
lastStatuses: number;
|
||||
};
|
||||
|
||||
@@ -100,9 +100,9 @@ export type Options = {
|
||||
};
|
||||
|
||||
const deploymentsQuery = `
|
||||
query deployments($owner: String!, $repo: String!, $lastDeployments: Int, $lastStatuses: Int) {
|
||||
query deployments($owner: String!, $repo: String!, $last: Int, $lastStatuses: Int) {
|
||||
repository(owner: $owner, name: $repo) {
|
||||
deployments(last: $lastDeployments) {
|
||||
deployments(last: $last) {
|
||||
nodes {
|
||||
state
|
||||
environment
|
||||
|
||||
@@ -35,13 +35,13 @@ import {
|
||||
|
||||
const GithubDeploymentsComponent = ({
|
||||
projectSlug,
|
||||
lastDeployments,
|
||||
last,
|
||||
lastStatuses,
|
||||
columns,
|
||||
host,
|
||||
}: {
|
||||
projectSlug: string;
|
||||
lastDeployments: number;
|
||||
last: number;
|
||||
lastStatuses: number;
|
||||
columns: TableColumn<GithubDeployment>[];
|
||||
host: string | undefined;
|
||||
@@ -55,8 +55,8 @@ const GithubDeploymentsComponent = ({
|
||||
host,
|
||||
owner,
|
||||
repo,
|
||||
last,
|
||||
lastStatuses,
|
||||
lastDeployments,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -75,11 +75,11 @@ const GithubDeploymentsComponent = ({
|
||||
};
|
||||
|
||||
export const GithubDeploymentsCard = ({
|
||||
lastDeployments,
|
||||
last,
|
||||
lastStatuses,
|
||||
columns,
|
||||
}: {
|
||||
lastDeployments?: number;
|
||||
last?: number;
|
||||
lastStatuses?: number;
|
||||
columns?: TableColumn<GithubDeployment>[];
|
||||
}) => {
|
||||
@@ -96,7 +96,7 @@ export const GithubDeploymentsCard = ({
|
||||
projectSlug={
|
||||
entity?.metadata.annotations?.[GITHUB_PROJECT_SLUG_ANNOTATION] || ''
|
||||
}
|
||||
lastDeployments={lastDeployments || 10}
|
||||
last={last || 10}
|
||||
lastStatuses={lastStatuses || 5}
|
||||
host={host}
|
||||
columns={columns || GithubDeploymentsTable.defaultDeploymentColumns}
|
||||
|
||||
Reference in New Issue
Block a user