Skip to content

Commit

Permalink
github(pull_request_template): remove How to test section (#4576)
Browse files Browse the repository at this point in the history
* github(pull_request_template): remove `How to test` section
* chore: commenter workflow
* Rename to commenter
  • Loading branch information
stevenjoezhang committed Jan 16, 2022
1 parent 4c4bd22 commit 133679f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ Thank you for creating a pull request to contribute to Hexo code! Before you ope



## How to test

```sh
git clone -b BRANCH https://github.com/USER/hexo.git
cd hexo
npm install
npm test
```

## Screenshots


Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/commenter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Commenter

on: [pull_request_target]

jobs:
commenter:
runs-on: ubuntu-latest
steps:
- name: Comment PR
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
## How to test
```sh
git clone -b ${{ github.head_ref }} https://github.com/${{ github.repository }}.git
cd hexo
npm install
npm test
```

0 comments on commit 133679f

Please sign in to comment.