Skip to content

Commit

Permalink
ci: add internal commit category
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTJP committed Jun 7, 2022
1 parent 002320f commit 24451f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def generateMarkdown(outputFile = './CHANGELOG.md',
[r'\bfix\b', "Bug fixes", r'## {category}', r'- {type}: {message} ({hash})'],
[r'\bperf\b', "Performance improvements", r'## {category}', r'- {type}: {message} ({hash})'],
[r'(\bbuild\b)|(\bci\b)|(\btest\b)', "Pipeline", r'## {category}', r'- {type}: {message} ({hash})'],
[r'(\bdocs\b)|(\brefactor\b)|(\bstyle\b)', "Maintenence", r'## {category}', r'- {type}: {message} ({hash})'] ]):
[r'(\bdocs\b)|(\brefactor\b)|(\bstyle\b)|(\binternal\b)', "Maintenance", r'## {category}', r'- {type}: {message} ({hash})'] ]):

"""
Generates a changelog from commit messages between the last tag and now.
Expand Down
8 changes: 8 additions & 0 deletions .github/commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
extends: [
"@commitlint/config-conventional"
],
rules: {
"type-enum": [2, "always", ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "internal"]],
}
}
4 changes: 3 additions & 1 deletion .github/workflows/verify-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
fetch-depth: 0

- name: Commit Linter
uses: wagoid/commitlint-github-action@v2.0.3
uses: wagoid/commitlint-github-action@v4
with:
configFile: .github/commitlint.config.js

build_test:
name: Build and Test
Expand Down

0 comments on commit 24451f4

Please sign in to comment.