diff --git a/.changeset/thirty-panthers-learn.md b/.changeset/thirty-panthers-learn.md
new file mode 100644
index 0000000000..676de6afa6
--- /dev/null
+++ b/.changeset/thirty-panthers-learn.md
@@ -0,0 +1,5 @@
+---
+'@backstage/plugin-github-deployments': minor
+---
+
+add reload button and functionality
diff --git a/plugins/github-deployments/package.json b/plugins/github-deployments/package.json
index b8761c1385..41e7992ac1 100644
--- a/plugins/github-deployments/package.json
+++ b/plugins/github-deployments/package.json
@@ -1,6 +1,6 @@
{
"name": "@backstage/plugin-github-deployments",
- "version": "0.1.1",
+ "version": "0.1.2",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
diff --git a/plugins/github-deployments/src/components/GithubDeploymentsCard.tsx b/plugins/github-deployments/src/components/GithubDeploymentsCard.tsx
index 5f0ef07659..99dfba560a 100644
--- a/plugins/github-deployments/src/components/GithubDeploymentsCard.tsx
+++ b/plugins/github-deployments/src/components/GithubDeploymentsCard.tsx
@@ -38,7 +38,7 @@ const GithubDeploymentsComponent = ({
const api = useApi(githubDeploymentsApiRef);
const [owner, repo] = projectSlug.split('/');
- const { loading, value, error, retry } = useAsyncRetry(
+ const { loading, value, error, retry: reload } = useAsyncRetry(
async () => await api.listDeployments({ owner, repo, last }),
);
@@ -50,7 +50,7 @@ const GithubDeploymentsComponent = ({
);
};
diff --git a/plugins/github-deployments/src/components/GithubDeploymentsTable/GithubDeploymentsTable.tsx b/plugins/github-deployments/src/components/GithubDeploymentsTable/GithubDeploymentsTable.tsx
index 1eddfd4dd2..91f91b919e 100644
--- a/plugins/github-deployments/src/components/GithubDeploymentsTable/GithubDeploymentsTable.tsx
+++ b/plugins/github-deployments/src/components/GithubDeploymentsTable/GithubDeploymentsTable.tsx
@@ -85,13 +85,13 @@ const columns: TableColumn[] = [
type GithubDeploymentsTableProps = {
deployments: GithubDeployment[];
isLoading: boolean;
- retry: () => void;
+ reload: () => void;
};
const GithubDeploymentsTable = ({
deployments,
isLoading,
- retry,
+ reload,
}: GithubDeploymentsTableProps) => {
const classes = useStyles();
@@ -105,9 +105,9 @@ const GithubDeploymentsTable = ({
actions={[
{
icon: () => ,
- tooltip: 'Refresh',
+ tooltip: 'Reload',
isFreeAction: true,
- onClick: () => retry(),
+ onClick: () => reload(),
},
]}
emptyContent={