Skip to content
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

fix: github actions yaml repair #96

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions .github/workflows/commit-lint-problem-matcher.json

This file was deleted.

32 changes: 15 additions & 17 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
name: First commit message adheres to guidelines
name: Validate Commit Messages

on: [pull_request]

env:
NODE_VERSION: lts/*

permissions:
contents: read
on:
pull_request:
types: [opened, synchronize]

jobs:
lint-commit-message:
validate-commit-message:
runs-on: ubuntu-latest
steps:
- name: Compute number of commits in the PR
id: nb-of-commits
run: |
echo "plusOne=$((${{ github.event.pull_request.commits }} + 1))" >> $GITHUB_OUTPUT
echo "minusOne=$((${{ github.event.pull_request.commits }} - 1))" >> $GITHUB_OUTPUT
- name: Validate commit message
- name: Check out code
uses: actions/checkout@v2

- name: Validate commit messages
run: |
echo "::add-matcher::.github/workflows/commit-lint-problem-matcher.json"
git rev-parse HEAD~${{ steps.nb-of-commits.outputs.minusOne }} | xargs npx -q core-validate-commit --no-validate-metadata --tap
git log --format=%s ${{ github.event.before }}..${{ github.sha }} -- | while read -r line; do
if ! [[ "$line" =~ ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\([\w\-\.]+\))?(!)?: ([\w ])+([\s\S]*)$ ]]; then
echo "Invalid commit message format: $line"
exit 1
fi
done
1 change: 0 additions & 1 deletion gurubu-client/src/app/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,3 @@ $radius-large: 8px;
$radius-xlarge: 12px;
$radius-xxlarge: 16px;
$radius-xxxlarge: 24px;

Loading