diff --git a/packages/app/src/components/catalog/EntityPage.tsx b/packages/app/src/components/catalog/EntityPage.tsx index fd15b75b6c..257fde3c24 100644 --- a/packages/app/src/components/catalog/EntityPage.tsx +++ b/packages/app/src/components/catalog/EntityPage.tsx @@ -15,7 +15,7 @@ */ import { Router as GitHubActionsRouter, - isPluginApplicableToEntity as isGitHubActionsAvaiable, + isPluginApplicableToEntity as isGitHubActionsAvailable, } from '@backstage/plugin-github-actions'; import { Router as CircleCIRouter, @@ -38,7 +38,7 @@ const CICDSwitcher = ({ entity }: { entity: Entity }) => { // This component is just an example of how you can implement your company's logic in entity page. // You can for example enforce that all components of type 'service' should use GitHubActions switch (true) { - case isGitHubActionsAvaiable(entity): + case isGitHubActionsAvailable(entity): return ; case isCircleCIAvailable(entity): return ; diff --git a/packages/create-app/templates/default-app/packages/app/src/components/catalog/EntityPage.tsx b/packages/create-app/templates/default-app/packages/app/src/components/catalog/EntityPage.tsx index 915928b4f5..5480d8218a 100644 --- a/packages/create-app/templates/default-app/packages/app/src/components/catalog/EntityPage.tsx +++ b/packages/create-app/templates/default-app/packages/app/src/components/catalog/EntityPage.tsx @@ -15,7 +15,7 @@ */ import { Router as GitHubActionsRouter, - isPluginApplicableToEntity as isGitHubActionsAvaiable, + isPluginApplicableToEntity as isGitHubActionsAvailable, } from '@backstage/plugin-github-actions'; import { Router as CircleCIRouter, @@ -38,7 +38,7 @@ const CICDSwitcher = ({ entity }: { entity: Entity }) => { // This component is just an example of how you can implement your company's logic in entity page. // You can for example enforce that all components of type 'service' should use GitHubActions switch (true) { - case isGitHubActionsAvaiable(entity): + case isGitHubActionsAvailable(entity): return ; case isCircleCIAvailable(entity): return ; diff --git a/plugins/circleci/src/components/Router.tsx b/plugins/circleci/src/components/Router.tsx index c99170b9d1..476ab26576 100644 --- a/plugins/circleci/src/components/Router.tsx +++ b/plugins/circleci/src/components/Router.tsx @@ -1,3 +1,19 @@ +/* + * Copyright 2020 Spotify AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import React from 'react'; import { Routes, Route } from 'react-router'; import { circleCIRouteRef, circleCIBuildRouteRef } from '../route-refs'; diff --git a/plugins/circleci/src/constants.ts b/plugins/circleci/src/constants.ts index 7d38837fd6..8c96db93e2 100644 --- a/plugins/circleci/src/constants.ts +++ b/plugins/circleci/src/constants.ts @@ -1 +1,17 @@ +/* + * Copyright 2020 Spotify AB + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const CIRCLECI_ANNOTATION = 'circleci.com/project-slug';