diff --git a/.github/workflows/greeting.yml b/.github/workflows/greeting.yml new file mode 100644 index 000000000..f62c3739c --- /dev/null +++ b/.github/workflows/greeting.yml @@ -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