refactor(hook): nest API response and use Gorm preload to populate repo and build data #1404
Workflow file for this run
This file contains 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 of the action | |
name: validate PR title | |
# trigger on pull_request events of the opened & edited type. | |
on: | |
pull_request: | |
types: [opened, synchronize, edited, reopened] | |
# pipeline to execute | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: validate title | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
run: | | |
echo "$TITLE" | grep -Eq '^(feat|fix|chore|refactor|enhance|test|docs)(\(.*\)|)!?:\s.+$' && (echo "Pass"; exit 0) || (echo "Incorrect Format. Please see https://go-vela.github.io/docs/community/contributing_guidelines/#development-workflow"; exit 1) |