Skip to content

Commit

Permalink
ci: add pull request title linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga authored Sep 19, 2024
1 parent ccb0754 commit 02c624a
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ concurrency:

on:
pull_request_target:
paths-ignore:
- '**/*.md'
merge_group:

permissions:
pull-requests: read

jobs:
push-comment:
name: Create comments ✍️
Expand All @@ -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/[email protected]
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:
Expand Down

0 comments on commit 02c624a

Please sign in to comment.