ci: add pull request title linting
Some checks failed
Push & Release 🌍 / Automation 🎛️ (push) Failing after 33s
Push & Release 🌍 / ${{ github.event_name == 'push' && 'Unstable 🚀⚠️' || 'Stable 🏷️✅' }} (push) Failing after 33s
Push & Release 🌍 / Deploy 🚀 (push) Has been skipped
Push & Release 🌍 / GitHub CodeQL 🔬 (push) Failing after 33s

This commit is contained in:
Fernando Fernández 2024-09-19 17:13:57 +00:00 committed by GitHub
parent ccb0754ae0
commit 02c624a617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,10 +6,11 @@ concurrency:
on:
pull_request_target:
paths-ignore:
- '**/*.md'
merge_group:
permissions:
pull-requests: read
jobs:
push-comment:
name: Create comments ✍️
@ -23,13 +24,29 @@ jobs:
automation:
name: Automation 🎛️
if: ${{ github.repository == 'jellyfin/jellyfin-vue' }}
if: ${{ always() && !cancelled() && github.repository == 'jellyfin/jellyfin-vue' }}
uses: ./.github/workflows/__automation.yml
secrets: inherit
semantic-commits:
if: ${{ always() && !cancelled() && github.repository == 'jellyfin/jellyfin-vue' }}
runs-on: ubuntu-latest
name: Semantic Pull Request 📚
steps:
- name: Validate PR title 👌
uses: amannn/action-semantic-pull-request@v5.5.3
env:
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
with:
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.
label:
name: Labeling 🏷️
if: ${{ always() && github.repository == 'jellyfin/jellyfin-vue'}}
if: ${{ always() && !cancelled() && github.repository == 'jellyfin/jellyfin-vue'}}
runs-on: ubuntu-latest
steps: