Skip to content

Commit bbc9dfd

Browse files
authored
[CI] Add PR description check in pre-commit (#791)
1 parent b5700c2 commit bbc9dfd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
username: ${{ github.actor }}
3737
password: ${{ secrets.GITHUB_TOKEN }}
3838
steps:
39+
- name: Check pull request description
40+
if: >-
41+
github.event_name == 'pull_request' &&
42+
contains(
43+
github.event.pull_request.body,
44+
'Please go to the `Preview` tab and select the appropriate template:')
45+
run: exit 1
3946
- uses: actions/checkout@v6
4047
with:
4148
submodules: recursive

0 commit comments

Comments
 (0)