-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a greeting comment to PRs for documentation
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Greeting | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
greeting: | ||
name: Issue a greeting comment upon PR | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Issue the greeting comment | ||
uses: peter-evans/create-or-update-comment@v1 | ||
with: | ||
token: ${{ secrets.CI_TOKEN }} | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
Hi @${{ github.event.pull_request.user.login }}. Thanks for your PR. | ||
I am @kingmakerbot. | ||
You can interact with me issuing a **slash command** in the first line of a **comment**. | ||
Currently, I understand the following commands: | ||
* `/rebase`: Rebase this PR onto the master branch | ||
* `/merge`: Merge this PR into the master branch | ||
* `/deploy-staging`: Deploy a staging environment to test this PR | ||
* `/undeploy-staging`: Manually undeploy the staging environment | ||
Make sure this PR appears in the **${{ github.repository }} changelog**, adding one of the following **labels**: | ||
* `kind/breaking`: :boom: Breaking Change | ||
* `kind/feature`: :rocket: New Feature | ||
* `kind/bug-fix`: :bug: Bug Fix | ||
* `kind/cleanup`: :broom: Code Refactoring | ||
* `kind/documentation`: :memo: Documentation |