chore: bump mathieudutour/github-tag-action from 6.1 to 6.2 #168
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: 'PR Standards Check' | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- reopened | |
- synchronize | |
jobs: | |
check-pr-title: | |
name: PR Title | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
# yamllint disable rule:line-length | |
run: | | |
npm install @commitlint/config-conventional | |
echo "module.exports = {extends: ['@commitlint/config-conventional'], rules: { 'subject-case': [0,'always',['sentence-case']],'header-max-length': [2, 'always', 120], 'body-max-line-length': [0, 'always', 120] }};" > commitlint.config.js | |
# yamllint enable rule:line-length | |
- name: Lint the PR Title | |
run: | | |
echo "${PR_TITLE}" | npx --yes commitlint | |
env: | |
PR_TITLE: '${{ github.event.pull_request.title }}' | |
check-pr-commits: | |
name: PR Commit Messages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure commit lint | |
run: | | |
echo "module.exports = {extends: ['@commitlint/config-conventional'], rules: { 'subject-case': [0, 'always', ['sentence-case','lower-case', 'start-case']], 'header-max-length': [2, 'always', 120], 'body-max-line-length': [0, 'always', 120] }};" > commitlint.config.js | |
- uses: wagoid/commitlint-github-action@v5.4.5 | |
apply-labels: | |
name: PR Labels | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Apply Herald rules | |
uses: gagoar/use-herald-action@v2.3.0 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
rulesLocation: '.github/herald_rule_*.json' | |
base: main | |
DEBUG: "*" |