File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches-ignore : ["main"] # 排除 main 分支的 push 事件
6
6
pull_request :
7
- # 移除对 main 分支的排除,使其在 main 分支的 pull request 事件中也能运行
7
+ # main 分支的 pull request 事件也会运行
8
8
workflow_dispatch :
9
9
10
10
jobs :
@@ -25,18 +25,19 @@ jobs:
25
25
uses : actions/github-script@v6
26
26
with :
27
27
script : |
28
- const { github, context } = require('@actions/github');
29
28
github.pulls.createReviewRequest({
30
29
owner: context.repo.owner,
31
30
repo: context.repo.repo,
32
31
pull_number: context.issue.number,
33
- reviewers: ['${{ github.actor }}']
32
+ reviewers: ['${{ github.actor }}']
34
33
});
35
34
- name : Check commits
36
35
run : |
37
36
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
38
- commitlint --from ${{ github.event.pull_request.base.sha }} --to${{ github.event.pull_request.head.sha }} --verbose
37
+ commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
39
38
else
40
39
commitlint --from $(git rev-list --max-parents=0 HEAD) --to HEAD --verbose
41
40
fi
42
41
42
+
43
+
You can’t perform that action at this time.
0 commit comments