diff --git a/.changeset/beige-cobras-camp.md b/.changeset/beige-cobras-camp.md new file mode 100644 index 0000000000..56345db805 --- /dev/null +++ b/.changeset/beige-cobras-camp.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-github-actions': patch +--- + +Link to GitHub using host defined in app config if defined. diff --git a/plugins/github-actions/src/components/Cards/RecentWorkflowRunsCard.tsx b/plugins/github-actions/src/components/Cards/RecentWorkflowRunsCard.tsx index 30807482a4..1126c2a2a0 100644 --- a/plugins/github-actions/src/components/Cards/RecentWorkflowRunsCard.tsx +++ b/plugins/github-actions/src/components/Cards/RecentWorkflowRunsCard.tsx @@ -72,6 +72,8 @@ export const RecentWorkflowRunsCard = ({ } }, [error, errorApi]); + const githubHost = hostname || 'github.com'; + return !runs.length ? ( Create new Workflow diff --git a/plugins/github-actions/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx b/plugins/github-actions/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx index e62704405d..82f7d64484 100644 --- a/plugins/github-actions/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx +++ b/plugins/github-actions/src/components/WorkflowRunsTable/WorkflowRunsTable.tsx @@ -191,6 +191,8 @@ export const WorkflowRunsTable = ({ branch, }); + const githubHost = hostname || 'github.com'; + return !runs ? ( Create new Workflow