Skip to content

Commit

Permalink
WIP on feature/pr-name-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril committed Jan 21, 2025
1 parent a31aa14 commit 3ce1f76
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v6
- uses: wagoid/commitlint-github-action@v5
with:
configFile: ./commitlint.config.cjs

pr-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm install @commitlint/config-conventional@^19.1.0
run: npm install @commitlint/config-conventional
- uses: JulienKode/[email protected]
with:
configuration-path: ./commitlint.config.cjs
8 changes: 6 additions & 2 deletions commitlint.config.mjs → commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { RuleConfigSeverity } from "@commitlint/types";
const RuleConfigSeverity = {
Disabled : 0,
Warning : 1,
Error : 2,
}

// Config used by 'commitlint' GitHub workflow
export default {
module.exports = {
extends: ["@commitlint/config-conventional"],
// Rules: https://commitlint.js.org/reference/rules.html
rules: {
Expand Down

0 comments on commit 3ce1f76

Please sign in to comment.