Commit 3388af39 authored by Ivan Vandot's avatar Ivan Vandot Committed by GitHub

enable github app integration for slash commands (#832)

parent 6c435112
name: Slash Beekeeper name: Slash Beekeeper
on: on:
issue_comment: repository_dispatch:
types: [created] types: [beekeeper]
jobs: jobs:
beekeeper: beekeeper:
name: Execute "/beekeeper" slash command name: Execute "/run beekeeper" slash command
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/beekeeper')
env: env:
REPLICA: 3 REPLICA: 3
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check for Command
id: command
uses: xt0rted/slash-command-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: beekeeper
reaction-type: "rocket"
- name: Get PR Branch
if: steps.command.outputs.command-name == 'beekeeper'
id: comment-branch
uses: xt0rted/pull-request-comment-branch@v1
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- name: Echo command (debug)
run: echo "The command was '${{ steps.command.outputs.command-name }}' with arguments '${{ steps.command.outputs.command-arguments }}'"
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
ref: ${{ steps.comment-branch.outputs.ref }} ref: ${{ github.event.client_payload.ref }}
fetch-depth: 1 fetch-depth: 1
- name: Install bee-local - name: Install bee-local
run: | run: |
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment