Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github): add PR name lint job
Browse files Browse the repository at this point in the history
skamril committed Jan 21, 2025
1 parent 06c0345 commit e2c6e28
Showing 4 changed files with 13 additions and 1,463 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
name: Lint Commit Messages
name: commitlint
on: [pull_request]

permissions:
contents: read
pull-requests: read

jobs:
commitlint:
commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v5

pr-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm install @commitlint/config-conventional@16.0.0
- uses: JulienKode/pull-request-name-linter-action@v0.5.0
8 changes: 3 additions & 5 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { RuleConfigSeverity } from "@commitlint/types";

// Config used by 'commitlint' GitHub action.
export default {
// Config used by 'commitlint' GitHub workflow
module.exports = {
extends: ["@commitlint/config-conventional"],
// Rules: https://commitlint.js.org/reference/rules.html
rules: {
"header-max-length": [RuleConfigSeverity.Error, "always", 150],
"header-max-length": [2, "always", 150],
},
};
1,449 changes: 0 additions & 1,449 deletions package-lock.json

This file was deleted.

7 changes: 0 additions & 7 deletions package.json

This file was deleted.

0 comments on commit e2c6e28

Please sign in to comment.