Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/pr-title-validation.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: PR Title Validation

on:
pull_request_target:
pull_request:
types: [opened, edited, synchronize, reopened]

permissions: read-all

jobs:
validate-pr-title:
name: Validate PR Title
Expand All @@ -12,8 +14,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
# For pull_request_target, we need to checkout the base branch
ref: ${{ github.event.pull_request.base.ref }}
# Ensure's validate-pr-title.js is the copy from master
ref: master

- name: Setup Node.js
uses: actions/setup-node@v4
Expand Down
Loading