Skip to content

Commit 8042fad

Browse files
committed
Merge branch 'release/0_1_0'
2 parents 58ca459 + afeb169 commit 8042fad

File tree

13 files changed

+2134
-1
lines changed

13 files changed

+2134
-1
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
max_line_length = 120
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

.github/workflows/commitlint.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- release/**
8+
pull_request:
9+
branches:
10+
- develop
11+
- feature/**
12+
- bug/**
13+
- hotfix/**
14+
15+
jobs:
16+
commitlint:
17+
runs-on: ubuntu-22.04
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 18
26+
cache: 'npm'
27+
28+
- name: Install commitlint
29+
run: |
30+
npm install @commitlint/cli
31+
npm install @commitlint/config-conventional
32+
33+
- name: Print versions
34+
run: |
35+
git --version
36+
node --version
37+
npm --version
38+
npx commitlint --version
39+
40+
- name: Validate current commit (last commit) with commitlint
41+
if: github.event_name == 'push'
42+
run: npx commitlint --last --verbose
43+
44+
- name: Validate PR commits with commitlint
45+
if: github.event_name == 'pull_request'
46+
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
47+
48+
# TODO:
49+
# - name: Validate PR title with commitlint
50+
# if: github.event_name == 'pull_request'
51+
# uses: JulienKode/pull-request-name-linter-action@v0.5.0
52+
53+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit "$1"

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.github
2+
node_modules
3+
package-lock.json

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all",
4+
"proseWrap": "always"
5+
}

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
# github-test
1+
# github-test
2+
3+
### Description
4+
5+
Voilà! In view, a humble vaudevillian veteran cast vicariously as both victim and villain by the vicissitudes of Fate.
6+
This visage, no mere veneer of vanity, is a vestige of the vox populi, now vacant, vanished. However, this valourous
7+
visitation of a bygone vexation stands vivified and has vowed to vanquish these venal and virulent vermin vanguarding
8+
vice and vouchsafing the violently vicious and voracious violation of volition! The only verdict is vengeance; a
9+
vendetta held as a votive, not in vain, for the value and veracity of such shall one day vindicate the vigilant and the
10+
virtuous. Verily, this vichyssoise of verbiage veers most verbose, so let me simply add that it's my very good honour to
11+
meet you and you may call me V.
12+
13+
### Features
14+
15+
- feature1
16+
- feature2
17+
- feature3

commitlint.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const test = (r) => r.test.bind(r);
2+
3+
module.exports = {
4+
defaultIgnores: false,
5+
extends: ['@commitlint/config-conventional'],
6+
ignores: [test(/Merge branch (.*?)(in|into) (.*)/)],
7+
};

docs/commitlint.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Conventional commits
2+
3+
- https://www.conventionalcommits.org/
4+
- https://github.com/conventionalcommit/commitlint
5+
- https://github.com/conventionalcommit/commitlint?tab=readme-ov-file#default-config

0 commit comments

Comments
 (0)