Skip to content
Closed
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
11 changes: 11 additions & 0 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Commit Lint

on:
pull_request:
types: [opened, edited, synchronize, reopened]

jobs:
commitlint:
uses: KeepTruckin/github-workflows-catalog/.github/workflows/commitlint.yaml@master
with:
node_version: "20"
15 changes: 15 additions & 0 deletions .github/workflows/semantic-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Semantic Release

on:
push:
branches:
- master
- main
- develop
- development

jobs:
release:
uses: KeepTruckin/github-workflows-catalog/.github/workflows/semantic-release.yaml@master
secrets:
KTBOT_GH_PAT: ${{ secrets.KTBOT_GH_PAT }}
52 changes: 52 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
// Type must be one of these
"type-enum": [
2,
"always",
[
"feat", // New feature
"fix", // Bug fix
"docs", // Documentation only changes
"style", // Changes that don't affect code meaning (formatting, etc)
"refactor", // Code change that neither fixes a bug nor adds a feature
"perf", // Performance improvement
"test", // Adding or updating tests
"chore", // Changes to build process or auxiliary tools
"revert", // Revert a previous commit
"build", // Changes to build system or dependencies
"ci", // Changes to CI configuration
],
],

// Scope is REQUIRED and should be the JIRA ticket (e.g., DEVPRD-3177)
"scope-empty": [2, "never"],
"scope-case": [2, "always", "upper-case"],

// Subject must not be sentence-case, start-case, pascal-case, upper-case
"subject-case": [
2,
"never",
["sentence-case", "start-case", "pascal-case", "upper-case"],
],

// Subject must not end with a period
"subject-full-stop": [2, "never", "."],

// Subject must not be empty
"subject-empty": [2, "never"],

// Type must not be empty
"type-empty": [2, "never"],

// Header max length (100 characters)
"header-max-length": [2, "always", 100],

// Body max line length (100 characters)
"body-max-line-length": [2, "always", 100],

// Footer max line length (100 characters)
"footer-max-line-length": [2, "always", 100],
},
};