We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15699e8 commit 09f31c8Copy full SHA for 09f31c8
.github/workflows/check-pr-title.yml
@@ -17,10 +17,14 @@ jobs:
17
github.event.action != 'edited' ||
18
contains(toJson(github.event.changes), 'title')
19
steps:
20
- - name: Check out base branch (for script)
+ - name: Checkout repository (sparse, PR head)
21
uses: actions/checkout@v5
22
with:
23
- ref: ${{ github.event.pull_request.base.ref }}
+ ref: ${{ github.event.pull_request.head.sha }}
24
+ fetch-depth: 1
25
+ sparse-checkout: |
26
+ scripts
27
+ sparse-checkout-cone: true
28
- name: Run PR title check
29
run: |
30
python3 scripts/check_pr_title.py "${{ github.event.pull_request.title }}"
0 commit comments