diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml index 928a82b2..d56a0160 100644 --- a/.github/workflows/pull.yml +++ b/.github/workflows/pull.yml @@ -12,12 +12,12 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: - - name: Close PR if commit message is "Update main.go" - if: github.event.pull_request.title == 'Update main.go' + - name: Close PR if commit message contains "Update" + if: github.event.pull_request.title.includes('Update') uses: superbrothers/close-pull-request@v3 with: # Optional. Post a issue comment just before closing a pull request. - comment: "Invalid PR." + comment: "非法PR. 请`fork`后修改自己的仓库, 而不是向主仓库提交更改. 如果您确信您的PR是为了给主仓库新增功能或修复bug, 请更改默认PR标题." golangci: name: lint