refactor: rename to avoid breaking changes

Signed-off-by: Sam Robson <srobson@gocardless.com>
This commit is contained in:
Sam Robson
2021-05-26 19:40:18 +01:00
parent e9702d811f
commit 30af1c4d6b
3 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
---
'@backstage/plugin-github-deployments': minor
'@backstage/plugin-github-deployments': patch
---
Add deployment statuses to the GithubDeployments plugin
+3 -3
View File
@@ -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}