Skip to content

Commit 912d620

Browse files
authored
chore: try fix commitlint as well
根据 https://github.com/linuxdeepin/treeland/actions/runs/30522984895/job/90807396502?pr=1223 的情况来看, d2510ed 看上去起作用。所以在 commitlint 上也添加这个做法。 Log:
1 parent 7102b4d commit 912d620

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/commitlint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ jobs:
1414
allow-unsafe-pr-checkout: true
1515
fetch-depth: 0
1616

17+
- name: Fetch base ref and test refs
18+
run: |
19+
git fetch origin ${{ github.event.pull_request.base.sha }}
20+
git cat-file -e ${{ github.event.pull_request.base.sha }} || echo "Base SHA 不存在!"
21+
git cat-file -e ${{ github.event.pull_request.head.sha }} || echo "Head SHA 不存在!"
22+
1723
- name: check PR description for AI co-author pattern
1824
shell: bash
1925
env:

0 commit comments

Comments
 (0)