Skip to content

fix(FARMSTACK-34): add truthy operator #11

fix(FARMSTACK-34): add truthy operator

fix(FARMSTACK-34): add truthy operator #11

Workflow file for this run

name: PR Title Validation
on:
pull_request:
types: [opened, edited]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- name: Check PR Title
run: |
title="${{ github.event.pull_request.title }}"
# Validate PR title
if [[ "$title" != feat* ]] && \
[[ "$title" != fix* ]] && \
[[ "$title" != refactor* ]] && \
[[ "$title" != style* ]] && \
[[ "$title" != chore* ]]; then
echo "Error: Pull request title must start with 'feat', 'fix', 'refactor', 'style', or 'chore'."
exit 1
fi
echo "Pull request title is valid."