diff --git a/.commitkit.toml b/.commitkit.toml index 81a2ed9..134a7a1 100644 --- a/.commitkit.toml +++ b/.commitkit.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + # CommitKit Configuration # Whether to add a Signed-off-by line to commits (-s flag) diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index b53b335..f0d882e 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + blank_issues_enabled: false contact_links: - name: Question diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml index d8f90fa..bf9bb0d 100644 --- a/.github/auto_assign.yml +++ b/.github/auto_assign.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + # Set to true to add reviewers to pull requests addReviewers: true diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 60c5efa..fedd2be 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + version: 2 updates: - package-ecosystem: "github-actions" diff --git a/.github/labeler.yml b/.github/labeler.yml index a932a54..d132fa2 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + dependencies: - any: ['**/package.json', '**/package-lock.json', '**/yarn.lock', '**/requirements.txt', '**/Cargo.toml', '**/Cargo.lock', '**/go.mod', '**/go.sum', '**/Gemfile', '**/Gemfile.lock'] diff --git a/.github/settings.yml b/.github/settings.yml index 75ea13b..40dff78 100644 --- a/.github/settings.yml +++ b/.github/settings.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + repository: name: commitkit-rust description: A tool for creating and managing Git commits with conventional commit format diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml index 37f5c89..e10c213 100644 --- a/.github/workflows/auto-assign.yml +++ b/.github/workflows/auto-assign.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + name: Auto Assign on: pull_request: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2824430..8734ae3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + name: CI on: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4349670..0a227a2 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# SPDX-License-Identifier: MIT + name: "CodeQL" on: diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index ebc0c7e..9216bc7 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + --- name: Dependabot Auto-Merge diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 27560b2..ae74242 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + name: "Pull Request Labeler" on: pull_request_target: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7edf37b..f79ba54 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + name: Release on: diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index b896ea5..74d224e 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# SPDX-License-Identifier: MIT + name: Scorecard supply-chain security on: diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml index 00666aa..1748888 100644 --- a/.github/workflows/semver.yml +++ b/.github/workflows/semver.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + name: Semantic Versioning on: diff --git a/.github/workflows/slsa-provenance.yml b/.github/workflows/slsa-provenance.yml index b44f6e7..7c0aacd 100644 --- a/.github/workflows/slsa-provenance.yml +++ b/.github/workflows/slsa-provenance.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# SPDX-License-Identifier: MIT + # SLSA Level 3 Provenance Attestation Workflow # # This reusable workflow generates SLSA Level 3 provenance attestations, diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index ac02b4e..49c7bae 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2026 Thomas Vincent +# SPDX-License-Identifier: MIT + name: SonarQube Cloud # Automatic Analysis does not support Rust, so analysis runs here. diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 697b880..c433416 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 diff --git a/.rustfmt.toml b/.rustfmt.toml index 9fdc490..cad58d9 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + # Google Rust Style Guide Configuration (Stable Features Only) # Based on: https://google.github.io/comprehensive-rust/ diff --git a/Cargo.toml b/Cargo.toml index ff4e18e..61bc1cc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + [package] name = "commitkit" version = "0.1.0" diff --git a/Dockerfile b/Dockerfile index 48a28cd..1869e04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + FROM rust:1.99-slim as builder WORKDIR /usr/src/app diff --git a/build.rs b/build.rs index d29972b..cc9aee4 100644 --- a/build.rs +++ b/build.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use std::env; use std::fs; use std::path::Path; diff --git a/clippy.toml b/clippy.toml index b52ef12..706555e 100644 --- a/clippy.toml +++ b/clippy.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + # Clippy configuration # Allow longer numeric literal suffixes for readability diff --git a/docker-compose.yml b/docker-compose.yml index 087a7ed..08ddedb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + version: '3.8' services: diff --git a/example-config.toml b/example-config.toml index bd44dfc..1794821 100644 --- a/example-config.toml +++ b/example-config.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + # CommitKit Example Configuration (.commitkit.toml) # Whether to add a Signed-off-by line to commits (-s flag) diff --git a/rustfmt.toml b/rustfmt.toml index 229bc82..b95dc06 100644 --- a/rustfmt.toml +++ b/rustfmt.toml @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +# SPDX-License-Identifier: MIT + edition = "2021" # Maximum width of each line diff --git a/src/changelog.rs b/src/changelog.rs index 7d419ce..e2c68da 100644 --- a/src/changelog.rs +++ b/src/changelog.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use anyhow::{Context, Result}; use std::fs::{self, File}; use std::io::{BufRead, BufReader, Write}; diff --git a/src/config.rs b/src/config.rs index 3ae5f2c..b87d6db 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use anyhow::{Context, Result}; use home::home_dir; use serde::Deserialize; diff --git a/src/emoji.rs b/src/emoji.rs index 72d1942..448df3c 100644 --- a/src/emoji.rs +++ b/src/emoji.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use once_cell::sync::Lazy; use std::collections::HashMap; diff --git a/src/error.rs b/src/error.rs index ed77c50..dd06660 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use thiserror::Error; #[derive(Error, Debug)] diff --git a/src/git.rs b/src/git.rs index bfb50e5..6c5b71b 100644 --- a/src/git.rs +++ b/src/git.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use anyhow::{Context, Result}; use std::io::{self, Write}; use std::process::{Command, Stdio}; diff --git a/src/hooks.rs b/src/hooks.rs index b00673e..43b3219 100644 --- a/src/hooks.rs +++ b/src/hooks.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use anyhow::{Context, Result}; use std::fs; #[cfg(unix)] diff --git a/src/lib.rs b/src/lib.rs index cbc2f42..de82022 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + pub mod changelog; pub mod config; pub mod emoji; diff --git a/src/main.rs b/src/main.rs index ffb7be0..2124fa4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use anyhow::{Context, Result}; use clap::Parser; use std::process; diff --git a/src/prompt.rs b/src/prompt.rs index ccbf459..5325de1 100644 --- a/src/prompt.rs +++ b/src/prompt.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use anyhow::{Context, Result}; use console::style; use dialoguer::{theme::ColorfulTheme, Input, Select}; diff --git a/src/stats.rs b/src/stats.rs index 0c79934..1cc443b 100644 --- a/src/stats.rs +++ b/src/stats.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use anyhow::{Context, Result}; use std::collections::HashMap; use std::process::Command; diff --git a/src/template.rs b/src/template.rs index d8a80ea..c0e9d10 100644 --- a/src/template.rs +++ b/src/template.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + use anyhow::{Context, Result}; use serde::Deserialize; use std::collections::HashMap; diff --git a/src/tests.rs b/src/tests.rs index ca486fa..334c9c3 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -1,4 +1,6 @@ #![cfg(test)] +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT use std::env; use std::fs; diff --git a/src/version.rs b/src/version.rs index 7d19edb..c334937 100644 --- a/src/version.rs +++ b/src/version.rs @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2025-2026 Thomas Vincent +// SPDX-License-Identifier: MIT + //! Version information for the crate //! //! This module contains version information about the crate, including the version from