Skip to content

Add the remaining common packages #4

Add the remaining common packages

Add the remaining common packages #4

name: "Verify Linked Task"
on: [pull_request]
# For details refer to https://github.com/tim-actions/commit-message-checker-with-regex
jobs:
check-pr:
if: ${{ !startsWith(github.head_ref, 'dependabot') }}
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- name: Get PR Commits
id: 'get-pr-commits'
uses: tim-actions/get-pr-commits@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check Subject Line Length
uses: tim-actions/[email protected]
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
pattern: '^.{0,128}(\n.*)*$'
error: 'Subject too long - recommended 50 (max 128)'
- name: Check Body Line Length
if: ${{ success() || failure() }}
uses: tim-actions/[email protected]
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
pattern: '^.+(\n.{0,72})*$'
error: 'Body line too long (max 72)'
- name: Check Azure ticket reference
if: ${{ success() || failure() }}
uses: tim-actions/[email protected]
with:
commits: ${{ steps.get-pr-commits.outputs.commits }}
pattern: 'AB#\d{4,5}'
error: 'No Azure ticket reference found'
one_pass_all_pass: 'true'