Compare commits
No commits in common. "7581374e1923179b5f6b73e2dca4ed1a447f5413" and "f0fd008e1d37b49e9db750ce316254f45b20e26e" have entirely different histories.
7581374e19
...
f0fd008e1d
|
@ -1,30 +0,0 @@
|
||||||
name: Check Commit Messages
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- '**/*.sh' # Commit messages are checked regardless of file type
|
|
||||||
pull_request:
|
|
||||||
paths-ignore:
|
|
||||||
- '**/*.sh'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
check-commit-message:
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: node:16-bullseye # Node.js pre-installed, based on Debian
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout Code
|
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # Fetch the entire history to avoid REST API reliance
|
|
||||||
|
|
||||||
- name: Check Commit Messages
|
|
||||||
run: |
|
|
||||||
echo "Checking commit message format..."
|
|
||||||
if ! git log -1 --pretty=%B | grep -Eq '^(feat|fix|chore|docs|style|refactor|test|perf):'; then
|
|
||||||
echo "Commit message does not follow the conventional format: <type>: <subject>"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
|
@ -1,31 +0,0 @@
|
||||||
name: Lint Bash Scripts
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '**/*.sh'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '**/*.sh'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint-bash:
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: node:16-bullseye # Node.js pre-installed, based on Debian
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout Code
|
|
||||||
uses: https://code.forgejo.org/actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0 # Fetch the entire history to avoid REST API reliance
|
|
||||||
|
|
||||||
- name: Install ShellCheck
|
|
||||||
run: |
|
|
||||||
apt-get update && apt-get install -y shellcheck
|
|
||||||
|
|
||||||
- name: Lint Bash Scripts
|
|
||||||
run: |
|
|
||||||
echo "Linting Bash scripts..."
|
|
||||||
find . -name '*.sh' -print0 | xargs -0 shellcheck
|
|
||||||
|
|
Loading…
Reference in a new issue