deps: Bump the microsoft group with 2 updates #82
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Lint Commit Messages | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, edited] | |
| jobs: | |
| commitlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check commit messages | |
| run: | | |
| # Get all commits in the PR | |
| COMMITS=$(git log --format=%s origin/${{ github.base_ref }}..HEAD) | |
| # Conventional commit pattern | |
| PATTERN='^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-z]+\))?: .{1,72}$' | |
| # Check each commit | |
| FAILED=0 | |
| while IFS= read -r commit; do | |
| # Skip merge commits | |
| if [[ "$commit" =~ ^Merge ]]; then | |
| echo "⏭️ Skipping merge commit: $commit" | |
| continue | |
| fi | |
| if [[ ! "$commit" =~ $PATTERN ]]; then | |
| echo "❌ Invalid commit message: $commit" | |
| FAILED=1 | |
| else | |
| echo "✅ Valid commit message: $commit" | |
| fi | |
| done <<< "$COMMITS" | |
| if [ $FAILED -eq 1 ]; then | |
| echo "" | |
| echo "Please use conventional commits format:" | |
| echo " <type>(<scope>): <subject>" | |
| echo "" | |
| echo "Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert" | |
| echo "Scopes: bindings, data, http, native, tests, examples, docs, deps, release, ci" | |
| echo "" | |
| echo "Example: feat(data): add support for custom SQL functions" | |
| exit 1 | |
| fi |