-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/github-action' into develop
- Loading branch information
Showing
3 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
# 自动关闭不规范PR | ||
name: AutocloserPR | ||
on: | ||
pull_request_target: | ||
types: [opened, edited] | ||
|
||
name: Autocloser | ||
on: pull_request_target | ||
jobs: | ||
autoclose: | ||
Autoclose: | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'RayWangQvQ/BiliBiliToolPro' | ||
steps: | ||
- uses: roots/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
pr-close-message: "This PR was automatically closed because it did not follow the PR template." | ||
pr-close-message: "This PR was automatically closed because it did not meet the requirements." | ||
pr-pattern: ".*请问您是否明白:【yes】 -->.*" | ||
|
||
checkTargetBranch: | ||
runs-on: ubuntu-latest | ||
needs: Autoclose | ||
steps: | ||
- uses: Vankka/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
target: main | ||
change-to: development | ||
comment: | | ||
Your PR was set to `main`, but PRs should be sent to `development` | ||
The base branch of this PR has been automatically changed to `development`, please check that there are no merge conflicts. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Check Toxic Comments | ||
on: [issue_comment, pull_request_review] | ||
|
||
jobs: | ||
toxic_check: | ||
runs-on: ubuntu-latest | ||
name: Safe space | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Safe space - action step | ||
uses: charliegerard/safe-space@master | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters