Add notices

Signed-off-by: Danylo Hotvianskyi <danilgotvyansky@gmail.com>
This commit is contained in:
Danylo Hotvianskyi
2025-07-11 18:27:29 +02:00
parent f0f06b4354
commit 16ee5911eb
3 changed files with 49 additions and 2 deletions
@@ -1,3 +1,18 @@
/*
* Copyright 2023 The Backstage Authors
*
* 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 { TemplateExample } from '@backstage/plugin-scaffolder-node';
import * as yaml from 'yaml';
@@ -1,3 +1,19 @@
/*
* Copyright 2021 The Backstage Authors
*
* 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 { createGithubIssuesCreateAction } from './githubIssuesCreate';
import {
ScmIntegrations,
@@ -1,3 +1,19 @@
/*
* Copyright 2021 The Backstage Authors
*
* 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 {
GithubCredentialsProvider,
ScmIntegrationRegistry,
@@ -109,7 +125,7 @@ export function createGithubIssuesCreateAction(options: {
repo,
token: providedToken,
});
const client = new Octokit({
...octokitOptions,
log: ctx.logger,
@@ -157,7 +173,7 @@ export function createGithubIssuesCreateAction(options: {
} catch (e) {
assertError(e);
ctx.logger.warn(
`Failed: creating issue '${title}' on repo: '${repo}', ${e.message}`,
`Failed: creating issue '${title}' on repo: '${repo}', ${e.message}`,
);
throw e;
}