-
Notifications
You must be signed in to change notification settings - Fork 24
feat(ci) : implement commit message standards and automation #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
565f2d8
64555aa
abd2ac0
c4a92e6
79ad081
161844a
dd03cb3
f8580ed
6be849b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| { | ||
| "extends": ["@commitlint/config-conventional"], | ||
| "rules": { | ||
| "body-leading-blank": [1, "always"], | ||
| "body-max-line-length": [2, "always", 100], | ||
| "footer-leading-blank": [1, "always"], | ||
| "footer-max-line-length": [2, "always", 100], | ||
| "header-max-length": [2, "always", 100], | ||
| "subject-case": [ | ||
| 2, | ||
| "never", | ||
| ["sentence-case", "start-case", "pascal-case", "upper-case"] | ||
| ], | ||
| "subject-empty": [2, "never"], | ||
| "subject-full-stop": [2, "never", "."], | ||
| "type-case": [2, "always", "lower-case"], | ||
| "type-empty": [2, "never"], | ||
| "type-enum": [ | ||
| 2, | ||
| "always", | ||
| [ | ||
| "build", | ||
| "chore", | ||
| "ci", | ||
| "docs", | ||
| "feat", | ||
| "fix", | ||
| "perf", | ||
| "refactor", | ||
| "revert", | ||
| "style", | ||
| "test" | ||
| ] | ||
| ] | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| module.exports = { | ||
| extends: ["@commitlint/config-conventional"] | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Lint Commit Messages | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| commitlint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '18' | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - name: Check commit messages | ||
| run: | | ||
| npx commitlint --config .commitlintrc.json --from="${{ github.event.pull_request.base.sha }}" --to="${{ github.sha }}" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #!/bin/sh | ||
| npm run commitmsg -- "$1" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| # Run tests if they exist | ||
| npm run test:ci | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this file about? I don't see this command in package.json scripts.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hi, @drtechie ,
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @rohan-019 the test:ci script in package.json does nothing. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "java.compile.nullAnalysis.mode": "automatic" | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.