Skip to content

Commit 0a0a94c

Browse files
committed
feat: replace commitlint with gitlint (#19)
1 parent aa2d177 commit 0a0a94c

File tree

5 files changed

+21
-54
lines changed

5 files changed

+21
-54
lines changed

.commitlintrc.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI
2+
on: [push, pull_request]
3+
jobs:
4+
gitlint:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
with:
9+
fetch-depth: 0
10+
- name: Install gitlint
11+
run: pip install gitlint
12+
- name: Validate current commit (last commit) with gitlint
13+
if: github.event_name == 'push'
14+
run: gitlint
15+
- name: Validate PR commits with gitlint
16+
if: github.event_name == 'pull_request'
17+
run: gitlint --commits ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }},${{ github.event.pull_request.head.sha }}

.github/workflows/commitlint.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.gitlint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[general]
2+
ignore=body-is-missing
3+
contrib=contrib-title-conventional-commits

Build-LuaJIT.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
$ErrorActionPreference = 'Stop'
22

3+
# https://github.com/microsoft/vswhere/wiki/Start-Developer-Command-Prompt#using-powershell
34
function Start-VsDevCmd
45
{
56
$installationPath = (

0 commit comments

Comments
 (0)