Skip to content

Commit 55b84c1

Browse files
committed
feat(workflow): 添加对拉取请求的支持以格式化 C++ 代码
1 parent 94bab1a commit 55b84c1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/format.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
712

813
jobs:
914
format:
@@ -24,4 +29,4 @@ jobs:
2429
uses: stefanzweifel/git-auto-commit-action@v6
2530
with:
2631
commit_message: "style: format code with clang-format"
27-
file_pattern: src/**/*.h src/**/*.hpp src/**/*.cpp
32+
branch: ${{ github.head_ref }}

0 commit comments

Comments
 (0)