Skip to content

Commit 8506652

Browse files
authored
Merge pull request #30 from Telefonica/release
chore: Install tools to check open source
2 parents 766b42b + f716547 commit 8506652

File tree

10 files changed

+173
-5
lines changed

10 files changed

+173
-5
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# [Add your title here]
1+
# <!-- Add your title here -->
22

33
## Description
44

5-
[__Please provide enough information and context so that others can review your pull request easily__]
5+
<!-- __Please provide enough information and context so that others can review your pull request easily__ -->
66

77
## Agreement
88

99
Please check the following boxes after you have read and understood each item.
1010

11-
* [ ] I have read the [CONTRIBUTING](./.github/CONTRIBUTING.md) document
12-
* [ ] I have read the [CODE_OF_CONDUCT](./.github/CODE_OF_CONDUCT.md) document
11+
* [ ] I have read the [CONTRIBUTING](https://github.com/Telefonica/cross-confluence-tools/blob/main/.github/CONTRIBUTING.md) document
12+
* [ ] I have read the [CODE_OF_CONDUCT](https://github.com/Telefonica/cross-confluence-tools/blob/main/.github/CODE_OF_CONDUCT.md) document
1313
* [ ] I accept that, by signing the Contributor License Agreement through a comment in the PR, my Github user name will be stored by in a branch of this repository for future reference.
1414

1515
In case this is your first contribution to this project, you will also have to **add a comment with the following text: "_I have read the CLA Document and I hereby sign the CLA_"**, otherwise the PR status will fail and our bot will request you to add it. Once you have signed it in a PR, you will not have to sign it again for future contributions.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital and contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
licenses:
5+
allowed:
6+
- Apache-2.0
7+
- MIT
8+
- X11
9+
- BSD-2-Clause
10+
- BSD-3-Clause
11+
- ISC
12+
- Zlib
13+
- Unlicense
14+
- 0BSD
15+
- BlueOak-1.0.0
16+
- WTFPL
17+
- CC-BY-3.0
18+
- CC-BY-4.0
19+
- CC0-1.0
20+
- Python-2.0
21+
warning:
22+
- CC-BY-SA-3.0
23+
- CC-BY-SA-4.0
24+
- LGPL-2.1
25+
- LGPL-2.1-only
26+
- LGPL-2.1+
27+
- LGPL-2.1-or-later
28+
- LGPL-3.0
29+
- LGPL-3.0-only
30+
- LGPL-3.0+
31+
- LGPL-3.0-or-later
32+
- MPL-1.1
33+
- MPL-2.0
34+
- EPL-1.0
35+
forbidden:
36+
- GPL-2.0-only
37+
- GPL-2.0-or-later
38+
- GPL-3.0-only
39+
- GPL-3.0-or-later
40+
- AGPL-3.0
41+
npm:
42+
excludeModules:
43+
# The following packages are references to local packages
44+
- "@tid-xcut/confluence-sync@workspace:*"
45+
- "@tid-xcut/child-process-manager@workspace:*"
46+
# The following packages have a license that is not a valid SPDX identifier
47+
- "babel-plugin-transform-import-meta@2.2.1" # BSD
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital and contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
rules:
5+
- name: "Source code"
6+
headers:
7+
- files:
8+
- "**/*.js"
9+
- "**/*.ts"
10+
- "**/src/**"
11+
license: "Apache-2.0"
12+
ignore:
13+
- "**/*.config.js"
14+
- "components/cspell-config/**"
15+
- "components/eslint-config/**"
16+
- name: "Config files"
17+
headers:
18+
- files:
19+
- ".github/**/*.yml"
20+
- "**/*.yml"
21+
- "**/*.config.js"
22+
- "components/cspell-config/**"
23+
- "components/eslint-config/**"
24+
license:
25+
- "MIT"
26+
- "Apache-2.0"
27+
ignore:
28+
- "**/README.md"
29+
- "**/LICENSE"
30+
- "**/*.json"
31+
- "components/cspell-config/**/*.txt"
32+
- name: "Copyright"
33+
headers:
34+
- files:
35+
- ".github/**/*.yml"
36+
- "**/src/**"
37+
- "**/*.yml"
38+
copyright:
39+
- "\\d{4}(\\s-\\s\\d{4})? Telefónica Innovación Digital and contributors"
40+
ignore:
41+
- "**/node_modules/**"
42+
- "dist/**"
43+
- "build/**"
44+
- "coverage/**"
45+
- ".github/ISSUE_TEMPLATE/**"
46+
- "components/markdown-confluence-sync/test/component/fixtures/**"

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
with:
8787
target: test:unit
8888
- name: Upload coverage results
89-
uses: actions/upload-artifact@v3
89+
uses: actions/upload-artifact@v4
9090
with:
9191
name: unit-test-coverage
9292
path: components/*/coverage
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital and contributors
2+
# SPDX-License-Identifier: MIT
3+
4+
name: Open Source Checks
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- main
10+
- release
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
permissions:
17+
contents: read
18+
pull-requests: write
19+
statuses: write
20+
21+
jobs:
22+
check-opensource-scaffold:
23+
name: Check Open Source Scaffold
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Checkout
28+
id: checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Check Open Source Scaffold
32+
uses: Telefonica/opensource-scaffold@v1
33+
34+
check-license-compliance:
35+
name: Check License Compliance
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
41+
- name: Check License Compliance
42+
uses: Telefonica/check-license-compliance/.github/actions/check-and-comment@v3.0.0-beta.1
43+
with:
44+
config-file: .github/check-license-compliance.config.yml
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
48+
check-spdx-headers:
49+
name: Check SPDX Headers
50+
runs-on: ubuntu-latest
51+
52+
steps:
53+
- name: Checkout
54+
id: checkout
55+
uses: actions/checkout@v4
56+
57+
- name: Check SPDX Headers
58+
uses: Telefonica/check-spdx-headers/.github/actions/check-and-comment@v1
59+
with:
60+
config-file: .github/check-spdx-headers.config.yml
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
2+
# SPDX-License-Identifier: MIT
3+
14
name: Publish to NPM
25
on:
36
release:

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
This monorepo is multiple-versioned, meaning that each component has its own version number. Please refer to the changelog file on each component for more information.

components/cspell-config/dictionaries/tech.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ cacheable
33
excalidraw
44
frontmatter
55
nrwl
6+
opensource
67
syncrc

components/markdown-confluence-sync/test/e2e/support/confluence.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
import { ConfluenceClient } from "confluence.js";
25

36
const README_PAGE_ID = process.env.CONFLUENCE_ROOT_PAGE_ID as string;

components/markdown-confluence-sync/test/e2e/support/setup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
2+
// SPDX-License-Identifier: Apache-2.0
3+
14
import * as dotenv from "dotenv";
25

36
// eslint-disable-next-line jest/require-hook

0 commit comments

Comments
 (0)