Skip to content

Commit

Permalink
Merge pull request #119 from Gauravtalreja1/fix-gha-copy-comment
Browse files Browse the repository at this point in the history
Fix gha copy comment

(cherry picked from commit 273978b)
  • Loading branch information
Gauravtalreja1 authored and web-flow committed Dec 6, 2023
1 parent 5643a65 commit dd86734
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/auto_cherry_pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,10 @@ jobs:
id: add-parent-prt-comment
if: ${{ always() && steps.cherrypick.outcome == 'success' }}
run: |
ISSUE_NUMBER=${{ steps.cherrypick.outputs.number }}
COMMENT_BODY=${{ needs.find-the-parent-prt-comment.outputs.prt_comment }}
curl -X POST -H "Authorization: token ${{ secrets.CHERRYPICK_PAT }}" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/issues/${ISSUE_NUMBER}/comments" \
-d "{\"body\":\"$COMMENT_BODY\"}"
"https://api.github.com/repos/${{ github.repository }}/issues/${{ steps.cherrypick.outputs.number }}/comments" \
-d "{\"body\":\"${{ needs.find-the-parent-prt-comment.outputs.prt_comment }}\"}"
- name: is autoMerging enabled for Auto CherryPicked PRs ?
if: ${{ always() && steps.cherrypick.outcome == 'success' && contains(github.event.pull_request.labels.*.name, 'AutoMerge_Cherry_Picked') }}
Expand Down

0 comments on commit dd86734

Please sign in to comment.