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
42 changes: 42 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"type-enum": [
2,
"always",
[
Comment thread
steffen-vogel-opalrt marked this conversation as resolved.
"build",
"chore",
"ci",
"cleanup",
"docs",
Comment thread
steffen-vogel-opalrt marked this conversation as resolved.
"doc",
"feat",
"fix",
"perf",
"refactor",
"revert",
"security",
"style",
"test"
]
],
"subject-case": [
2,
"always",
[
"sentence-case",
"start-case",
"pascal-case",
"upper-case"
Comment thread
steffen-vogel-opalrt marked this conversation as resolved.
]
],
"header-max-length": [
2,
"always",
120
]
}
}
25 changes: 25 additions & 0 deletions .github/workflows/compliance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# SPDX-FileCopyrightText: 2026 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0

name: Compliance checks

on:
pull_request:
branches: [master, main]

permissions:
contents: read
pull-requests: read

jobs:
conventional-commits:
name: Conventional commit messages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0

- uses: wagoid/commitlint-github-action@v6
with:
configFile: .commitlintrc.json
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ default_stages: [pre-commit]

# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

# commitlint runs at commit-msg, so plain `pre-commit install` must wire that stage too.
default_install_hook_types: [pre-commit, commit-msg]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand Down Expand Up @@ -76,6 +80,13 @@ repos:
hooks:
- id: reuse-lint-file

- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: "v9.26.0"
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ["@commitlint/config-conventional@19.8.1"]

- repo: local
hooks:
- id: dco-hook
Expand Down
1 change: 1 addition & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "simple",
"pull-request-title-pattern": "chore${scope}: Release${component} ${version}",
"packages": {
".": {
"extra-files": [
Expand Down
Loading