Skip to content

Commit

Permalink
Add a greeting comment to PRs for documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
giorio94 committed Nov 26, 2020
1 parent e41069f commit 0b6df31
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/greeting.yml
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

0 comments on commit 0b6df31

Please sign in to comment.