Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
SigNoz
Commits
3f323223
Commit
3f323223
authored
3 years ago
by
Ankit Nayan
Browse files
Options
Download
Email Patches
Plain Diff
chore: adding commitlint
parent
29c26777
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/commitlint.yml
+14
-0
.github/workflows/commitlint.yml
with
14 additions
and
0 deletions
+14
-0
.github/workflows/commitlint.yml
0 → 100644
+
14
-
0
View file @
3f323223
name
:
commitlint
on
:
[
pull_request
]
jobs
:
lint-commits
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2.3.1
with
:
# we actually need "github.event.pull_request.commits + 1" commit
fetch-depth
:
0
-
uses
:
actions/setup-node@v2.1.0
# or just "yarn" if you depend on "@commitlint/cli" already
-
run
:
yarn add @commitlint/cli
-
run
:
yarn run commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help