Skip to content

Commit a6d899d

Browse files
chore: passed the pr details to the sync job as part of repository dispatch event
1 parent 8e9f6c9 commit a6d899d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ce-merge-trigger.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,9 @@ jobs:
5151
GIT_ACTOR: ${{ github.actor }}
5252
PR_TITLE: ${{ github.event.pull_request.title }}
5353
PR_BODY: ${{ github.event.pull_request.body }}
54-
PR_REVIEWERS: ${{ toJson(github.event.pull_request.requested_reviewers) }}
55-
PR_APPROVED_REVIEWERS: ${{ steps.reviewers.outputs.approved_reviewers }}
54+
PR_APPROVERS: ${{ steps.reviewers.outputs.approved_reviewers }}
5655
run: |
5756
curl -H "Authorization: token $GH_PAT" \
5857
-H 'Accept: application/json' \
59-
-d "{\"event_type\": \"oss-merge\", \"client_payload\": {\"git-ref\": \"${GIT_REF}\", \"git-sha\": \"${GIT_SHA}\", \"git-actor\": \"${GIT_ACTOR}\", \"title\": \"${PR_TITLE}\", \"description\": \"${PR_BODY}\", \"reviewers\": ${PR_REVIEWERS}, \"approved_reviewers\": ${PR_APPROVED_REVIEWERS} }}" \
58+
-d "{\"event_type\": \"oss-merge\", \"client_payload\": {\"git-ref\": \"${GIT_REF}\", \"git-sha\": \"${GIT_SHA}\", \"git-actor\": \"${GIT_ACTOR}\", \"title\": \"${PR_TITLE}\", \"description\": \"${PR_BODY}\", \"pr_approvers\": ${PR_APPROVERS} }}" \
6059
"https://api.github.com/repos/hashicorp/consul-enterprise/dispatches"

0 commit comments

Comments
 (0)