-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
13 additions
and
1,463 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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], | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.