From 61e2b02ec803a600b85295108daf6bd3f09bd2d2 Mon Sep 17 00:00:00 2001 From: artpav <19916123+artemijspavlovs@users.noreply.github.com> Date: Fri, 22 Mar 2024 12:22:33 +0200 Subject: [PATCH] chore: add slack notification actions for new and stale PRs (#340) --- .github/workflows/new-pr-notification.yaml | 10 ++++++++++ .github/workflows/stale-pr-notification.yaml | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/new-pr-notification.yaml create mode 100644 .github/workflows/stale-pr-notification.yaml diff --git a/.github/workflows/new-pr-notification.yaml b/.github/workflows/new-pr-notification.yaml new file mode 100644 index 00000000..d8bcff94 --- /dev/null +++ b/.github/workflows/new-pr-notification.yaml @@ -0,0 +1,10 @@ +name: new-pr-notification-to-slack +on: + pull_request: + types: [opened] + +jobs: + new-pr-notification: + uses: dymensionxyz/common-workflows/.github/workflows/new-pr-notification.yaml@main + secrets: + WEBHOOK_URL: ${{ secrets.SLACK_NEW_PR_CHANNEL_WEBHOOK }} diff --git a/.github/workflows/stale-pr-notification.yaml b/.github/workflows/stale-pr-notification.yaml new file mode 100644 index 00000000..19b43423 --- /dev/null +++ b/.github/workflows/stale-pr-notification.yaml @@ -0,0 +1,11 @@ +name: stale-pr-notification-to-slack +on: + pull_request: + types: [labeled] + +jobs: + stale-pr-notification: + if: github.event.label.name == 'Stale' + uses: dymensionxyz/common-workflows/.github/workflows/stale-pr-notification.yaml@main + secrets: + WEBHOOK_URL: ${{ secrets.SLACK_STALE_PR_CHANNEL_WEBHOOK }}