Skip to content

Commit

Permalink
ci(github): add PR name lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril committed Jan 20, 2025
1 parent d14454a commit f5b8072
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 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-name:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm install @commitlint/config-conventional
- uses: JulienKode/[email protected]
4 changes: 2 additions & 2 deletions commitlint.config.js → commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { RuleConfigSeverity } from "@commitlint/types";
const { RuleConfigSeverity } = require("@commitlint/types");

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

0 comments on commit f5b8072

Please sign in to comment.