deps: update orb-messages to latest #196
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 Compliance | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
check-pr-title: | |
name: Check PR title | |
runs-on: ubuntu-22.04 | |
# See https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable | |
env: | |
TITLE: ${{ github.event.pull_request.title }} | |
steps: | |
- name: Check title format | |
run: | | |
# has a colon which separates the area from the description | |
# max 72 characters | |
exit_code=0 | |
if [[ ! ${TITLE} =~ ^[^:]+:.+$ ]]; then | |
echo "PR title must specify an area and a description, see README.md" | |
exit_code=1 | |
fi | |
if [[ ${#TITLE} -gt 72 ]]; then | |
echo "PR title is too long, see README.md" | |
exit_code=1 | |
fi | |
exit $exit_code |