From 3e82c2940973f7da5da0ddaa867213ca6cc524d7 Mon Sep 17 00:00:00 2001 From: Nicolas Schweitzer Date: Thu, 23 Nov 2023 10:34:09 +0100 Subject: [PATCH] Add slapr workflow for automatic slack emoji addition --- .github/workflows/slapr.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/slapr.yml diff --git a/.github/workflows/slapr.yml b/.github/workflows/slapr.yml new file mode 100644 index 00000000000000..e2d59a4665eb35 --- /dev/null +++ b/.github/workflows/slapr.yml @@ -0,0 +1,23 @@ +--- +name: Slack emoji PR updates +on: + pull_request_review: + types: [submitted] + pull_request: + types: [closed] + +jobs: + run_slapr_datadog_agent: + runs-on: ubuntu-latest + steps: + - uses: DataDog/slapr@master + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + SLACK_CHANNEL_ID: "${{ secrets.SLACK_CHANNEL_ID }}" + 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: "approved2" + SLAPR_EMOJI_CHANGES_REQUESTED: "changes_requested" + SLAPR_EMOJI_MERGED: "merged" + SLAPR_EMOJI_CLOSED: "closed"