Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ When you're finished with the changes, create a __pull request to the `release`
Once the PR is approved and __merged into the release branch__, a project maintainer can start the release process by:

1. Updating the version number in the `package.json` file.
2. Updating the action version in the `templates/.github/workflows/opensource-checks.yml` file.
2. Updating the action version in the `templates/.github/workflows/opensource-checks.yml` file when it is a major release.
3. Updating the CHANGELOG.md file with the changes in the new version.
4. Tagging the main branch with the corresponding version numbers.

Expand Down Expand Up @@ -169,18 +169,18 @@ This project adheres to the [Software Package Data Exchange (SPDX)](https://spdx
This license must be used for all new code, unless the containing project, module or externally-imported codebase uses a different license. If you can't put a header in the file due to its structure, please put it in a LICENSE file in the same directory.

```
// SPDX-FileCopyrightText: {{ year }} {{ company }} and contributors. All rights reserved
// SPDX-FileCopyrightText: Telefónica Innovación Digital
// SPDX-License-Identifier: MPL-2.0

# SPDX-FileCopyrightText: {{ year }} {{ company }} and contributors. All rights reserved
# SPDX-FileCopyrightText: Telefónica Innovación Digital
# SPDX-License-Identifier: MPL-2.0

<!--
SPDX-FileCopyrightText: {{ year }} {{ company }} and contributors. All rights reserved
SPDX-FileCopyrightText: Telefónica Innovación Digital
SPDX-License-Identifier: MPL-2.0
-->

SPDX-FileCopyrightText: {{ year }} {{ company }} and contributors. All rights reserved
SPDX-FileCopyrightText: Telefónica Innovación Digital
SPDX-License-Identifier: MPL-2.0
```

Expand All @@ -189,18 +189,18 @@ SPDX-License-Identifier: MPL-2.0
This license can be used for test scripts and other short code snippets, at the discretion of the author.

```
// SPDX-FileCopyrightText: {{ year }} {{ company }} and contributors
// SPDX-FileCopyrightText: Telefónica Innovación Digital
// SPDX-License-Identifier: MIT

# SPDX-FileCopyrightText: {{ year }} {{ company }} and contributors
# SPDX-FileCopyrightText: Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

<!--
SPDX-FileCopyrightText: {{ year }} {{ company }} and contributors
SPDX-FileCopyrightText: Telefónica Innovación Digital
SPDX-License-Identifier: MIT
-->

SPDX-FileCopyrightText: {{ year }} {{ company }} and contributors
SPDX-FileCopyrightText: Telefónica Innovación Digital
SPDX-License-Identifier: MIT
```

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

name: Setup Node.js
Expand Down
2 changes: 1 addition & 1 deletion .github/check-license-compliance.config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

licenses:
Expand Down
6 changes: 2 additions & 4 deletions .github/check-spdx-headers.config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

rules:
Expand Down Expand Up @@ -46,9 +46,7 @@ rules:
- "**/*.js"
- "**/*.yml"
copyright:
- "\\d{4}(\\s-\\s\\d{4})? Telefónica Innovación Digital and contributors"
- "\\d{4}(\\s-\\s\\d{4})? Telefónica Innovación Digital"
- "\\d{4}(\\s-\\s\\d{4})? Telefónica"
- "\\d{4}(\\s-\\s\\d{4})? Telefónica Innovación Digital( and contributors)?"
ignore:
- "templates/.github/**/*.yml"
- "templates/check-license-compliance-configs/*.yml"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

name: Continuous Integration
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/contributor-license-agreement.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

name: "Contributor License Agreement"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/init.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

name: Initialize repository
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/open-source-checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

name: Open Source Checks
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
npm-token: ${{ secrets.NPM_TOKEN_XCUT }}

- name: Check License Compliance
uses: Telefonica/check-license-compliance/.github/actions/check-and-comment@v3.0.0-beta.1
uses: Telefonica/check-license-compliance/.github/actions/check-and-comment@v3.0.0-beta.2
with:
config-file: .github/check-license-compliance.config.yml
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

name: Publish to NPM
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-docs-to-confluence.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT

name: Sync Docs to Confluence
Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
#### Deprecated
#### Removed

## [1.1.1] - 2025-02-20

### Fixed

* chore: Change copyright headers. Remove "and contributors" from files where it is not applicable for the moment

### Changed

* chore: Upgrade `check-license-compliance` to v3.0.0-beta.2 (change copyright headers)

## [1.1.0] - 2025-02-13

### Added
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: Apache-2.0

name: 'Check Open Source Scaffold'
Expand Down
2 changes: 1 addition & 1 deletion action/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import { run } from "./main.js";
Expand Down
2 changes: 1 addition & 1 deletion action/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import * as core from "@actions/core";
Expand Down
2 changes: 1 addition & 1 deletion babel.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: MIT

module.exports = (api) => {
Expand Down
2 changes: 1 addition & 1 deletion bin/opensource-scaffold.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import { run } from "../dist/Cli.js";
Expand Down
2 changes: 1 addition & 1 deletion cspell.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: MIT

const DICTIONARIES_BASE_PATH = "cspell";
Expand Down
10 changes: 5 additions & 5 deletions dist-action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42850,7 +42850,7 @@ const chalkStderr = createChalk({level: stderrColor ? stderrColor.level : 0});
var winston = __nccwpck_require__(9531);
var winston_default = /*#__PURE__*/__nccwpck_require__.n(winston);
;// CONCATENATED MODULE: ./src/Logger.ts
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0


Expand Down Expand Up @@ -42895,7 +42895,7 @@ function createLogger(level) {
}

;// CONCATENATED MODULE: ./src/Resources.ts
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0
/**
* List of open source scaffold resources
Expand Down Expand Up @@ -42974,7 +42974,7 @@ const RESOURCES = [
];

;// CONCATENATED MODULE: ./src/Checker.ts
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0


Expand Down Expand Up @@ -43062,7 +43062,7 @@ class Checker {
}

;// CONCATENATED MODULE: ./action/main.ts
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0


Expand Down Expand Up @@ -43102,7 +43102,7 @@ async function run() {
}

;// CONCATENATED MODULE: ./action/index.ts
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

run();
Expand Down
2 changes: 1 addition & 1 deletion dist-action/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: MIT

import { createRequire } from "module";
Expand Down
2 changes: 1 addition & 1 deletion jest.action.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: MIT

// For a detailed explanation regarding each configuration property, visit:
Expand Down
2 changes: 1 addition & 1 deletion jest.library.config.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: MIT

// For a detailed explanation regarding each configuration property, visit:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tid-xcut/opensource-scaffold",
"version": "1.1.0",
"version": "1.1.1",
"type": "module",
"description": "Scaffolding for open source projects. A CLI tool to create open source repositories tools and resources",
"packageManager": "pnpm@9.4.0",
Expand Down
2 changes: 1 addition & 1 deletion script/post-package.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: MIT

import { replaceInFile } from "replace-in-file";
Expand Down
2 changes: 1 addition & 1 deletion src/Checker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0
import { existsSync } from "fs";

Expand Down
2 changes: 1 addition & 1 deletion src/Checker.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import type { LogLevel } from "./Logger.types.js";
Expand Down
2 changes: 1 addition & 1 deletion src/Cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import { select, checkbox, input } from "@inquirer/prompts";
Expand Down
2 changes: 1 addition & 1 deletion src/Creator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import { existsSync } from "fs";
Expand Down
2 changes: 1 addition & 1 deletion src/Creator.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import type { SupportedLicense } from "./License.types.js";
Expand Down
2 changes: 1 addition & 1 deletion src/License.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import type { SupportedLicense, LicenseFAQs } from "./License.types.js";
Expand Down
2 changes: 1 addition & 1 deletion src/License.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Logger.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import chalk from "chalk";
Expand Down
2 changes: 1 addition & 1 deletion src/Logger.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

/** Possible log levels */
Expand Down
2 changes: 1 addition & 1 deletion src/Paths.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import { resolve } from "path";
Expand Down
2 changes: 1 addition & 1 deletion src/Resources.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import type { Resource } from "./Resources.types.js";
Expand Down
2 changes: 1 addition & 1 deletion src/Resources.types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

/**
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

export * from "./Creator.js";
Expand Down
2 changes: 1 addition & 1 deletion templates/.github/workflows/open-source-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- uses: actions/checkout@v4

- name: Check License Compliance
uses: Telefonica/check-license-compliance/.github/actions/check-and-comment@v3.0.0-beta.1
uses: Telefonica/check-license-compliance/.github/actions/check-and-comment@v3.0.0-beta.2
with:
config-file: .github/check-license-compliance.config.yml
env:
Expand Down
2 changes: 1 addition & 1 deletion test/action/setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down
2 changes: 1 addition & 1 deletion test/action/specs/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import * as main from "@action/main";
Expand Down
2 changes: 1 addition & 1 deletion test/action/specs/main.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import * as core from "@actions/core";
Expand Down
2 changes: 1 addition & 1 deletion test/library/setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
Expand Down
2 changes: 1 addition & 1 deletion test/library/specs/Checker.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import { existsSync } from "fs";
Expand Down
2 changes: 1 addition & 1 deletion test/library/specs/Cli.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import { resolve } from "path";
Expand Down
2 changes: 1 addition & 1 deletion test/library/specs/Creator.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
// SPDX-License-Identifier: Apache-2.0

import type { PathLike } from "fs";
Expand Down