rewrite other references to spotify/backstage and sorrounding things
This commit is contained in:
@@ -182,7 +182,7 @@ export function readConfig(config: Config): ProviderConfig[] {
|
||||
export function parseUrl(urlString: string): { org: string } {
|
||||
const path = new URL(urlString).pathname.substr(1).split('/');
|
||||
|
||||
// /spotify
|
||||
// /backstage
|
||||
if (path.length === 1 && path[0].length) {
|
||||
return { org: decodeURIComponent(path[0]) };
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ describe('parseEntityYaml', () => {
|
||||
name: backstage
|
||||
description: backstage.io
|
||||
annotations:
|
||||
github.com/project-slug: 'spotify/backstage'
|
||||
github.com/project-slug: 'backstage/backstage'
|
||||
spec:
|
||||
type: website
|
||||
lifecycle: production
|
||||
@@ -54,7 +54,7 @@ describe('parseEntityYaml', () => {
|
||||
name: 'backstage',
|
||||
description: 'backstage.io',
|
||||
annotations: {
|
||||
'github.com/project-slug': 'spotify/backstage',
|
||||
'github.com/project-slug': 'backstage/backstage',
|
||||
},
|
||||
},
|
||||
spec: {
|
||||
|
||||
@@ -26,8 +26,7 @@ TBD
|
||||
name: backstage
|
||||
description: backstage.io
|
||||
annotations:
|
||||
github.com/project-slug: 'spotify/backstage'
|
||||
|
||||
github.com/project-slug: 'backstage/backstage'
|
||||
spec:
|
||||
type: website
|
||||
lifecycle: production
|
||||
|
||||
@@ -4,7 +4,7 @@ metadata:
|
||||
name: backstage
|
||||
description: backstage.io
|
||||
annotations:
|
||||
github.com/project-slug: 'spotify/backstage'
|
||||
github.com/project-slug: 'backstage/backstage'
|
||||
backstage.io/techdocs-ref: github:https://github.com/backstage/backstage.git
|
||||
spec:
|
||||
type: website
|
||||
|
||||
@@ -8,7 +8,7 @@ The following values are read from the configuration file.
|
||||
|
||||
```yaml
|
||||
rollbar:
|
||||
organization: spotify
|
||||
organization: organization-name
|
||||
accountToken:
|
||||
$env: ROLLBAR_ACCOUNT_TOKEN
|
||||
```
|
||||
|
||||
@@ -53,7 +53,7 @@ const ServiceEntityPage = ({ entity }: { entity: Entity }) => (
|
||||
```yaml
|
||||
# app.config.yaml
|
||||
rollbar:
|
||||
organization: spotify
|
||||
organization: organization-name
|
||||
accountToken:
|
||||
$env: ROLLBAR_ACCOUNT_TOKEN
|
||||
```
|
||||
|
||||
@@ -9,13 +9,13 @@ metadata:
|
||||
- techdocs
|
||||
- mkdocs
|
||||
spec:
|
||||
owner: spotify/techdocs-core
|
||||
owner: backstage/techdocs-core
|
||||
templater: cookiecutter
|
||||
type: documentation
|
||||
path: '.'
|
||||
|
||||
|
||||
schema:
|
||||
required:
|
||||
required:
|
||||
- component_id
|
||||
- description
|
||||
properties:
|
||||
@@ -27,4 +27,3 @@ spec:
|
||||
title: Description
|
||||
type: string
|
||||
description: Help others understand what these docs are about.
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ describe('JobProcessor', () => {
|
||||
|
||||
const mockValues: RequiredTemplateValues = {
|
||||
owner: 'blobby',
|
||||
storePath: 'spotify/mock-repo',
|
||||
storePath: 'backstage/mock-repo',
|
||||
};
|
||||
|
||||
describe('create', () => {
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('Preparers', () => {
|
||||
metadata: {
|
||||
annotations: {
|
||||
'backstage.io/managed-by-location':
|
||||
'file:/Users/bingo/spotify/backstage/plugins/scaffolder-backend/sample-templates/react-ssr-template/template.yaml',
|
||||
'file:/Users/bingo/backstage/plugins/scaffolder-backend/sample-templates/react-ssr-template/template.yaml',
|
||||
},
|
||||
name: 'react-ssr-template',
|
||||
title: 'React SSR Template',
|
||||
|
||||
@@ -51,12 +51,12 @@ describe('CookieCutter Templater', () => {
|
||||
return await fs.promises.mkdtemp(path.join(tempDir, 'temp'));
|
||||
};
|
||||
|
||||
it('should write a cookiecutter.json file with the values from the entitiy', async () => {
|
||||
it('should write a cookiecutter.json file with the values from the entity', async () => {
|
||||
const tempdir = await mkTemp();
|
||||
|
||||
const values = {
|
||||
owner: 'blobby',
|
||||
storePath: 'spotify/end-repo',
|
||||
storePath: 'backstage/end-repo',
|
||||
description: 'description',
|
||||
component_id: 'newthing',
|
||||
};
|
||||
@@ -78,7 +78,7 @@ describe('CookieCutter Templater', () => {
|
||||
|
||||
const values = {
|
||||
owner: 'blobby',
|
||||
storePath: 'spotify/end-repo',
|
||||
storePath: 'backstage/end-repo',
|
||||
component_id: 'something',
|
||||
};
|
||||
|
||||
@@ -96,7 +96,7 @@ describe('CookieCutter Templater', () => {
|
||||
|
||||
const values = {
|
||||
owner: 'blobby',
|
||||
storePath: 'spotify/end-repo',
|
||||
storePath: 'backstage/end-repo',
|
||||
};
|
||||
|
||||
await expect(
|
||||
@@ -109,7 +109,7 @@ describe('CookieCutter Templater', () => {
|
||||
|
||||
const values = {
|
||||
owner: 'blobby',
|
||||
storePath: 'spotify/end-repo',
|
||||
storePath: 'backstage/end-repo',
|
||||
component_id: 'newthing',
|
||||
};
|
||||
|
||||
@@ -137,7 +137,7 @@ describe('CookieCutter Templater', () => {
|
||||
|
||||
const values = {
|
||||
owner: 'blobby',
|
||||
storePath: 'spotify/end-repo',
|
||||
storePath: 'backstage/end-repo',
|
||||
component_id: 'newthing',
|
||||
};
|
||||
|
||||
@@ -157,7 +157,7 @@ describe('CookieCutter Templater', () => {
|
||||
|
||||
const values = {
|
||||
owner: 'blobby',
|
||||
storePath: 'spotify/end-repo',
|
||||
storePath: 'backstage/end-repo',
|
||||
component_id: 'newthing',
|
||||
};
|
||||
|
||||
@@ -203,7 +203,7 @@ describe('CookieCutter Templater', () => {
|
||||
|
||||
const values = {
|
||||
owner: 'blobby',
|
||||
storePath: 'spotify/end-repo',
|
||||
storePath: 'backstage/end-repo',
|
||||
component_id: 'newthing',
|
||||
};
|
||||
|
||||
@@ -243,7 +243,7 @@ describe('CookieCutter Templater', () => {
|
||||
directory: tempdir,
|
||||
values: {
|
||||
owner: 'blobby',
|
||||
storePath: 'spotify/end-repo',
|
||||
storePath: 'backstage/end-repo',
|
||||
},
|
||||
logStream: stream,
|
||||
dockerClient: mockDocker,
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('Templaters', () => {
|
||||
metadata: {
|
||||
annotations: {
|
||||
'backstage.io/managed-by-location':
|
||||
'file:/Users/bingo/spotify/backstage/plugins/scaffolder-backend/sample-templates/react-ssr-template/template.yaml',
|
||||
'file:/Users/bingo/backstage/plugins/scaffolder-backend/sample-templates/react-ssr-template/template.yaml',
|
||||
},
|
||||
name: 'react-ssr-template',
|
||||
title: 'React SSR Template',
|
||||
|
||||
@@ -90,6 +90,6 @@ metadata:
|
||||
sonarqube.org/project-key: YOUR_PROJECT_KEY
|
||||
spec:
|
||||
type: library
|
||||
owner: Spotify
|
||||
owner: CNCF
|
||||
lifecycle: experimental
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user