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
2 changes: 2 additions & 0 deletions .github/CLA.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ Grant of Patent License. Subject to the terms and conditions of this Agreement,

You represent that you are legally entitled to grant the above license. If your employer(s) has rights to intellectual property that you create that includes your Contributions, you represent that you have received permission to make Contributions on behalf of that employer, that you will have received permission from your current and future employers for all future Contributions, that your applicable employer has waived such rights for all of your current and future Contributions to Telefónica Innovación Digital, or that your employer has executed a separate Corporate CLA with Telefónica Innovación Digital.

You represent that each of Your Contributions is Your original creation. You represent that Your Contribution submissions include complete details of any third-party license or other restriction (including, but not limited to, related patents and trademarks) of which you are personally aware and which are associated with any part of Your Contributions.

You are not expected to provide support for Your Contributions, except to the extent You desire to provide support. You may provide support for free, for a fee, or not at all. Unless required by applicable law or agreed to in writing, You provide Your Contributions on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON- INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE.

You agree to notify Telefónica Innovación Digital of any facts or circumstances of which you become aware that would make these representations inaccurate in any respect.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Add your title here
# <!-- Add your title here -->

## Description

__Please provide enough information and context so that others can review your pull request easily__
<!-- __Please provide enough information and context so that others can review your pull request easily__ -->

## Agreement

Expand Down
67 changes: 67 additions & 0 deletions .github/check-license-compliance.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital and contributors
# SPDX-License-Identifier: MIT

licenses:
allowed:
- Apache-2.0
- MIT
- X11
- BSD-2-Clause
- BSD-3-Clause
- ISC
- Zlib
- Unlicense
- 0BSD
- BlueOak-1.0.0
- WTFPL
- CC-BY-3.0
- CC-BY-4.0
- CC0-1.0
- Python-2.0
warning:
- CC-BY-SA-3.0
- CC-BY-SA-4.0
- LGPL-2.1
- LGPL-2.1-only
- LGPL-2.1+
- LGPL-2.1-or-later
- LGPL-3.0
- LGPL-3.0-only
- LGPL-3.0+
- LGPL-3.0-or-later
- MPL-1.1
- MPL-2.0
- EPL-1.0
forbidden:
- GPL-2.0-only
- GPL-2.0-or-later
- GPL-3.0-only
- GPL-3.0-or-later
- AGPL-3.0
npm:
excludeModules:
- "@tid-xcut/[email protected]"

# production: true # Whether to check production dependencies or not
# development: true # Whether to check development dependencies or not
# onlyDirect: false # Whether to check only direct dependencies or not
# npm: # Configuration for npm dependencies
# includeFiles: # Files to include in the check
# - "**/package.json"
# excludeFiles: # Files to exclude from the check
# - "**/node_modules/**"
# developmentFiles: # Dependencies in these files are considered development dependencies
# - "**/my-dev-package/package.json"
# modules: # Only check these modules
# - "[email protected]"
# excludeModules: # Exclude these modules from the check
# - "[email protected]"
# extraModules: # Add these extra modules to the check
# - "[email protected]"
# python: # Configuration for python dependencies, similar to npm, plus extra options
# recursiveRequirements: true # Whether to check requirements recursively, including -r files
# maven: {} # Configuration for maven dependencies, similar to npm
# go: {} # Configuration for go dependencies, similar to npm
# reporter: text # Reporter to use (text, json, markdown)
# failOnNotValid: true # Whether to fail the action if a dependency is forbidden
# log: info # Log level (silly, debug, verbose, info, warn, error)
45 changes: 45 additions & 0 deletions .github/check-spdx-headers.config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital and contributors
# SPDX-License-Identifier: MIT

rules:
- name: "Source code"
headers:
- files:
- "**/*.js"
- "**/*.ts"
- "src/**"
license: "Apache-2.0"
ignore:
- "*.config.js"
- "script/**"
- name: "Config files"
headers:
- files:
- ".github/**/*.yml"
- "**/*.yml"
- "*.config.js"
license:
- "MIT"
- "Apache-2.0"
- name: "Scripts"
headers:
- files:
- "script/**"
license:
- "MIT"
- "Apache-2.0"
- name: "Copyright"
headers:
- files:
- ".github/**/*.yml"
- "src/**"
- "**/*.yml"
copyright:
- "\\d{4}(\\s-\\s\\d{4})? Telefónica Innovación Digital"
- "\\d{4}(\\s-\\s\\d{4})? Telefónica Innovación Digital and contributors"
ignore:
- "**/node_modules/**"
- "dist/**"
- "build/**"
- "coverage/**"
- ".github/ISSUE_TEMPLATE/**"
62 changes: 62 additions & 0 deletions .github/workflows/open-source-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# SPDX-FileCopyrightText: 2025 Telefónica Innovación Digital and contributors
# SPDX-License-Identifier: MIT

name: Open Source Checks
on:
pull_request:
push:
branches:
- main
- release

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: write
statuses: write

jobs:
check-opensource-scaffold:
name: Check Open Source Scaffold
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Check Open Source Scaffold
uses: Telefonica/opensource-scaffold@v1

check-license-compliance:
name: Check License Compliance
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Check License Compliance
uses: Telefonica/check-license-compliance/.github/actions/[email protected]
with:
config-file: .github/check-license-compliance.config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

check-spdx-headers:
name: Check SPDX Headers
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4

- name: Check SPDX Headers
uses: Telefonica/check-spdx-headers/.github/actions/check-and-comment@v1
with:
config-file: .github/check-spdx-headers.config.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions cspell/missing.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
commonmark
frontmatter
opensource
syncrc
3 changes: 3 additions & 0 deletions jest.e2e.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-License-Identifier: MIT

/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
// Automatically clear mock calls and instances between every test
Expand Down
3 changes: 3 additions & 0 deletions jest.unit.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-License-Identifier: MIT

/** @type {import('ts-jest').JestConfigWithTsJest} **/
export default {
// Automatically clear mock calls and instances between every test
Expand Down
3 changes: 3 additions & 0 deletions script/post-package.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-License-Identifier: MIT

import { replaceInFile } from "replace-in-file";

const filePath = "dist/index.js";
Expand Down
2 changes: 2 additions & 0 deletions script/release
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# SPDX-License-Identifier: MIT

#!/bin/bash

# Exit early
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/support/confluence.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-License-Identifier: Apache-2.0

import { ConfluenceClient } from "confluence.js";

const README_PAGE_ID = process.env.CONFLUENCE_README_PAGE_ID as string;
Expand Down
3 changes: 3 additions & 0 deletions test/e2e/support/setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-License-Identifier: Apache-2.0

import * as dotenv from "dotenv";

// eslint-disable-next-line jest/require-hook
Expand Down
3 changes: 3 additions & 0 deletions test/unit/specs/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-License-Identifier: Apache-2.0

import * as main from "../../../src/main";

jest.mock<typeof import("@tid-xcut/markdown-confluence-sync")>(
Expand Down
3 changes: 3 additions & 0 deletions test/unit/specs/main.spec.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital and contributors
// SPDX-License-Identifier: Apache-2.0

import * as core from "@actions/core";
import * as main from "../../../src/main";
import { MarkdownConfluenceSync } from "@tid-xcut/markdown-confluence-sync";
Expand Down
Loading