From af3267ac5ae60ab598c680773cfb00124be672b5 Mon Sep 17 00:00:00 2001 From: Manish Gupta <59428681+mguptahub@users.noreply.github.com> Date: Fri, 24 Nov 2023 13:11:21 +0530 Subject: [PATCH] Updated the slack notification message to PR Title (#2869) --- .github/workflows/build-branch.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-branch.yml b/.github/workflows/build-branch.yml index 4a2047edc..724320e97 100644 --- a/.github/workflows/build-branch.yml +++ b/.github/workflows/build-branch.yml @@ -98,7 +98,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "✅ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }} " + "message": "${{ github.event.pull_request.title }} " } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} @@ -114,7 +114,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "❌ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }}" + "message": "${{ github.event.pull_request.title }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} @@ -163,7 +163,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "✅ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }} " + "message": "${{ github.event.pull_request.title }} " } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} @@ -179,7 +179,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "❌ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }}" + "message": "${{ github.event.pull_request.title }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} @@ -226,7 +226,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "✅ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }} " + "message": "${{ github.event.pull_request.title }} " } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} @@ -242,7 +242,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "❌ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }}" + "message": "${{ github.event.pull_request.title }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} @@ -287,7 +287,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "✅ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }} " + "message": "${{ github.event.pull_request.title }} " } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} @@ -303,7 +303,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "❌ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }}" + "message": "${{ github.event.pull_request.title }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} @@ -350,7 +350,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "✅ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }} " + "message": "${{ github.event.pull_request.title }} " } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }} @@ -366,7 +366,7 @@ jobs: "action_name": "${{ github.workflow }}", "job_name": "${{ github.job }}", "status": "❌ ${{ job.status }}", - "message": "${{ github.event.head_commit.message }}" + "message": "${{ github.event.pull_request.title }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_GITHUB_BUILD_WEBHOOK }}