feat(github-actions): add a separate data mock
This commit is contained in:
+3
-7
@@ -11,19 +11,15 @@ backend:
|
||||
credentials: true
|
||||
|
||||
proxy:
|
||||
"/circleci/api":
|
||||
target: "https://circleci.com/api/v1.1"
|
||||
'/circleci/api':
|
||||
target: 'https://circleci.com/api/v1.1'
|
||||
changeOrigin: true
|
||||
pathRewrite:
|
||||
"^/proxy/circleci/api/": "/"
|
||||
'^/proxy/circleci/api/': '/'
|
||||
|
||||
organization:
|
||||
name: Spotify
|
||||
|
||||
github-actions:
|
||||
owner: spotify
|
||||
repo: backstage
|
||||
|
||||
techdocs:
|
||||
storageUrl: https://techdocs-mock-sites.storage.googleapis.com
|
||||
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
"diff": "backstage-cli plugin:diff",
|
||||
"prepack": "backstage-cli prepack",
|
||||
"postpack": "backstage-cli postpack",
|
||||
"clean": "backstage-cli clean"
|
||||
"clean": "backstage-cli clean",
|
||||
"mock-data": "./scripts/mock-data.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"@backstage/catalog-model": "^0.1.1-alpha.16",
|
||||
|
||||
+1
-1
@@ -156,7 +156,7 @@ export const WorkflowRunDetailsPage = () => {
|
||||
const [owner, repo] = (
|
||||
useProjectName({
|
||||
kind: 'Component',
|
||||
name: 'backstage-site',
|
||||
name: 'backstage',
|
||||
}) ?? '/'
|
||||
).split('/');
|
||||
const details = useWorkflowRunsDetails(repo, owner);
|
||||
|
||||
@@ -33,7 +33,7 @@ export function useWorkflowRuns() {
|
||||
|
||||
const projectName = useProjectName({
|
||||
kind: 'Component',
|
||||
name: 'backstage-site',
|
||||
name: 'backstage',
|
||||
});
|
||||
const { loading, value: runs, retry } = useAsyncRetry<
|
||||
WorkflowRun[]
|
||||
|
||||
@@ -25,15 +25,3 @@ spec:
|
||||
title: Description
|
||||
type: string
|
||||
description: Description of the component
|
||||
---
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: Component
|
||||
metadata:
|
||||
name: backstage-site
|
||||
description: backstage.io
|
||||
annotations:
|
||||
backstage.io/github-actions-id: 'spotify/backstage'
|
||||
spec:
|
||||
type: website
|
||||
lifecycle: production
|
||||
owner: guest
|
||||
|
||||
Reference in New Issue
Block a user