chore(deps-dev): bump simple-git from 3.24.0 to 3.25.0 #1071
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: Semantic PR Check | |
on: | |
pull_request: | |
types: [opened, synchronize, edited] | |
jobs: | |
pr-title-check: | |
name: Check PR for semantic title | |
runs-on: ubuntu-latest | |
steps: | |
- name: PR title is valid | |
if: > | |
startsWith(github.event.pull_request.title, 'feat:') || startsWith(github.event.pull_request.title, 'feat(') || | |
startsWith(github.event.pull_request.title, 'fix:') || startsWith(github.event.pull_request.title, 'fix(') || | |
startsWith(github.event.pull_request.title, 'perf:') || startsWith(github.event.pull_request.title, 'perf(') || | |
startsWith(github.event.pull_request.title, 'docs:') || startsWith(github.event.pull_request.title, 'docs(') || | |
startsWith(github.event.pull_request.title, 'test:') || startsWith(github.event.pull_request.title, 'test(') || | |
startsWith(github.event.pull_request.title, 'refactor:') || startsWith(github.event.pull_request.title, 'refactor(') || | |
startsWith(github.event.pull_request.title, 'style:') || startsWith(github.event.pull_request.title, 'style(') || | |
startsWith(github.event.pull_request.title, 'build:') || startsWith(github.event.pull_request.title, 'build(') || | |
startsWith(github.event.pull_request.title, 'ci:') || startsWith(github.event.pull_request.title, 'ci(') || | |
startsWith(github.event.pull_request.title, 'chore:') || startsWith(github.event.pull_request.title, 'chore(') || | |
startsWith(github.event.pull_request.title, 'revert:') || startsWith(github.event.pull_request.title, 'revert(') | |
run: | | |
echo 'Title checks passed' | |
- name: PR title is invalid | |
if: > | |
!startsWith(github.event.pull_request.title, 'feat:') && !startsWith(github.event.pull_request.title, 'feat(') && | |
!startsWith(github.event.pull_request.title, 'fix:') && !startsWith(github.event.pull_request.title, 'fix(') && | |
!startsWith(github.event.pull_request.title, 'perf:') && !startsWith(github.event.pull_request.title, 'perf(') && | |
!startsWith(github.event.pull_request.title, 'docs:') && !startsWith(github.event.pull_request.title, 'docs(') && | |
!startsWith(github.event.pull_request.title, 'test:') && !startsWith(github.event.pull_request.title, 'test(') && | |
!startsWith(github.event.pull_request.title, 'refactor:') && !startsWith(github.event.pull_request.title, 'refactor(') && | |
!startsWith(github.event.pull_request.title, 'style:') && !startsWith(github.event.pull_request.title, 'style(') && | |
!startsWith(github.event.pull_request.title, 'build:') && !startsWith(github.event.pull_request.title, 'build(') && | |
!startsWith(github.event.pull_request.title, 'ci:') && !startsWith(github.event.pull_request.title, 'ci(') && | |
!startsWith(github.event.pull_request.title, 'chore:') && !startsWith(github.event.pull_request.title, 'chore(') && | |
!startsWith(github.event.pull_request.title, 'revert:') && !startsWith(github.event.pull_request.title, 'revert(') | |
run: | | |
echo 'Pull request title is not valid. Please follow https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines' | |
exit 1 |