diff --git a/.github/workflows/slapr.yml b/.github/workflows/slapr.yml new file mode 100644 index 0000000000000..8aeb594f8831c --- /dev/null +++ b/.github/workflows/slapr.yml @@ -0,0 +1,26 @@ +--- +name: Slack emoji PR updates +on: + pull_request_review: + types: [submitted] + pull_request: + types: [closed] + +permissions: {} + +jobs: + run_slapr_datadog_agent: + runs-on: ubuntu-latest + steps: + - uses: DataDog/slapr@celian/codeowners + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + # SLACK_CHANNEL_ID: "${{ secrets.? }}" + SLAPR_MULTICHANNEL: "true" + SLACK_API_TOKEN: "${{ secrets.SLACK_API_TOKEN }}" + SLAPR_BOT_USER_ID: "${{ secrets.SLAPR_BOT_USER_ID }}" + SLAPR_EMOJI_REVIEW_STARTED: "review_started" + SLAPR_EMOJI_APPROVED: "pr-approved-" + SLAPR_EMOJI_CHANGES_REQUESTED: "changes_requested" + SLAPR_EMOJI_MERGED: "merged" + SLAPR_EMOJI_CLOSED: "closed"