Skip to content

Commit

Permalink
Merge pull request #96 from Trendyol/grb-dev-5
Browse files Browse the repository at this point in the history
fix: github actions yaml repair
  • Loading branch information
armagandalkiran authored Feb 1, 2024
2 parents c8f0a21 + 2e1ff09 commit 02370f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 31 deletions.
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;

0 comments on commit 02370f2

Please sign in to comment.