From df80488850f722e1f852812b60b183a7b927e660 Mon Sep 17 00:00:00 2001 From: atulikumwenayo Date: Tue, 7 Jul 2026 09:03:08 -0400 Subject: [PATCH 1/3] add slack pr notification workflow --- .../workflows/notify-slack-on-pr-open.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/notify-slack-on-pr-open.yaml diff --git a/.github/workflows/notify-slack-on-pr-open.yaml b/.github/workflows/notify-slack-on-pr-open.yaml new file mode 100644 index 0000000..3f56e28 --- /dev/null +++ b/.github/workflows/notify-slack-on-pr-open.yaml @@ -0,0 +1,23 @@ +name: Slack Pull Request Notification + +on: + pull_request: + types: [opened, reopened] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Notify Slack on PR open + env: + WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }} + PULL_REQUEST_AUTHOR_ICON_URL : ${{ github.event.pull_request.user.avatar_url }} + PULL_REQUEST_AUTHOR_NAME : ${{ github.event.pull_request.user.login }} + PULL_REQUEST_AUTHOR_PROFILE_URL: ${{ github.event.pull_request.user.html_url }} + PULL_REQUEST_BASE_BRANCH_NAME : ${{ github.event.pull_request.base.ref }} + PULL_REQUEST_COMPARE_BRANCH_NAME : ${{ github.event.pull_request.head.ref }} + PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }} + PULL_REQUEST_REPO: ${{ github.event.pull_request.head.repo.name }} + PULL_REQUEST_TITLE : ${{ github.event.pull_request.title }} + PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }} + uses: salesforcecli/github-workflows/.github/actions/prNotification@main From 813996ff3cdb2d9ea1d6f67c2a2a8f90d1f4417d Mon Sep 17 00:00:00 2001 From: atulikumwenayo Date: Tue, 7 Jul 2026 09:08:33 -0400 Subject: [PATCH 2/3] trim trailing whitespace --- .github/workflows/notify-slack-on-pr-open.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/notify-slack-on-pr-open.yaml b/.github/workflows/notify-slack-on-pr-open.yaml index 3f56e28..d935019 100644 --- a/.github/workflows/notify-slack-on-pr-open.yaml +++ b/.github/workflows/notify-slack-on-pr-open.yaml @@ -20,4 +20,4 @@ jobs: PULL_REQUEST_REPO: ${{ github.event.pull_request.head.repo.name }} PULL_REQUEST_TITLE : ${{ github.event.pull_request.title }} PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }} - uses: salesforcecli/github-workflows/.github/actions/prNotification@main + uses: salesforcecli/github-workflows/.github/actions/prNotification@main \ No newline at end of file From 91b0a61112a9d7954b219dc4ae52722becc74a82 Mon Sep 17 00:00:00 2001 From: atulikumwenayo Date: Tue, 7 Jul 2026 09:15:36 -0400 Subject: [PATCH 3/3] fix pre-commit hook failures --- .../workflows/notify-slack-on-pr-open.yaml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/notify-slack-on-pr-open.yaml b/.github/workflows/notify-slack-on-pr-open.yaml index d935019..b14b098 100644 --- a/.github/workflows/notify-slack-on-pr-open.yaml +++ b/.github/workflows/notify-slack-on-pr-open.yaml @@ -9,15 +9,15 @@ jobs: runs-on: ubuntu-latest steps: - name: Notify Slack on PR open - env: - WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }} - PULL_REQUEST_AUTHOR_ICON_URL : ${{ github.event.pull_request.user.avatar_url }} - PULL_REQUEST_AUTHOR_NAME : ${{ github.event.pull_request.user.login }} + env: + WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + PULL_REQUEST_AUTHOR_ICON_URL: ${{ github.event.pull_request.user.avatar_url }} + PULL_REQUEST_AUTHOR_NAME: ${{ github.event.pull_request.user.login }} PULL_REQUEST_AUTHOR_PROFILE_URL: ${{ github.event.pull_request.user.html_url }} - PULL_REQUEST_BASE_BRANCH_NAME : ${{ github.event.pull_request.base.ref }} - PULL_REQUEST_COMPARE_BRANCH_NAME : ${{ github.event.pull_request.head.ref }} - PULL_REQUEST_NUMBER : ${{ github.event.pull_request.number }} + PULL_REQUEST_BASE_BRANCH_NAME: ${{ github.event.pull_request.base.ref }} + PULL_REQUEST_COMPARE_BRANCH_NAME: ${{ github.event.pull_request.head.ref }} + PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }} PULL_REQUEST_REPO: ${{ github.event.pull_request.head.repo.name }} - PULL_REQUEST_TITLE : ${{ github.event.pull_request.title }} - PULL_REQUEST_URL : ${{ github.event.pull_request.html_url }} - uses: salesforcecli/github-workflows/.github/actions/prNotification@main \ No newline at end of file + PULL_REQUEST_TITLE: ${{ github.event.pull_request.title }} + PULL_REQUEST_URL: ${{ github.event.pull_request.html_url }} + uses: salesforcecli/github-workflows/.github/actions/prNotification@main