feat(github-actions): add a separate data mock

This commit is contained in:
Nikita Nek Dudnik
2020-07-24 15:56:48 +02:00
parent 25e41d2274
commit c82c045ee8
5 changed files with 7 additions and 22 deletions
+3 -7
View File
@@ -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
+2 -1
View File
@@ -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",
@@ -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