Geloosa is checking the pull request title π #18
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: Pull Request Title | |
run-name: ${{ github.actor }} is checking the pull request title π | |
on: | |
pull_request: | |
types: [edited, reopened, opened, synchronize] | |
env: | |
CI: true | |
jobs: | |
check-pr-title: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check PR title | |
run: | | |
if [[ "${{ github.event.pull_request.title }}" =~ ^\[EO-[0-9]+\] ]]; then | |
echo "Pr title is correct" | |
else | |
echo "Incorrect PR title: should starts with [EO-XXXX] where XXXX is a task number" | |
exit 1 | |
fi |