Skip to content

Commit a458218

Browse files
committed
Merge remote-tracking branch 'origin/pr-pixiv' into pr-pixiv
# Conflicts: # .github/workflows/close_pr.yml
2 parents 557f2b7 + 4fca014 commit a458218

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/close_pr.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
name: ClosePR
1+
name: PullLint
22
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened]
35
pull_request_target:
46
types: [assigned, opened, synchronize, reopened]
57
jobs:
68
# This workflow closes invalid PR
79
close-pr:
810
name: closepr
11+
if: ${{ github.event_name == 'pull_request_target' }}
912
# The type of runner that the job will run on
1013
runs-on: ubuntu-latest
1114
permissions: write-all
@@ -18,3 +21,25 @@ jobs:
1821
with:
1922
# Optional. Post a issue comment just before closing a pull request.
2023
comment: "非法PR. 请`fork`后修改自己的仓库, 而不是向主仓库提交更改. 如果您确信您的PR是为了给主仓库新增功能或修复bug, 请更改默认PR标题. **注意**: 如果您再次触发本提示, 则有可能导致账号被封禁."
24+
25+
golangci:
26+
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.title, '.go') }}
27+
uses: ./.github/workflows/lib_lint.yml
28+
with:
29+
ref: ${{ github.event.pull_request.head.sha }}
30+
commit_back: false
31+
32+
runmain:
33+
needs: golangci
34+
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.title, '.go') }}
35+
uses: ./.github/workflows/lib_run.yml
36+
with:
37+
ref: ${{ github.event.pull_request.head.sha }}
38+
39+
build:
40+
needs: [runmain]
41+
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.title, '.go') }}
42+
uses: ./.github/workflows/lib_build.yml
43+
with:
44+
prefix: "zbp_"
45+
upload_artifact: false

0 commit comments

Comments
 (0)