Skip to content

Commit

Permalink
[BXMSPROD-2084] migrate to kiegroup/git-backporting
Browse files Browse the repository at this point in the history
  • Loading branch information
lampajr committed Jul 13, 2023
1 parent 3638f91 commit 4bca333
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .ci/actions/backporting/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@ runs:
id: prepare-reviewers
shell: bash
run: |
env
# starts from request reviewers or empty array
reviewers="$(echo ${REQUESTED_REVIEWERS:-[]} | jq -c 'map(.login)' | jq -cr '[. |= . + ["${{ inputs.author }}", "${{ env.MERGED_BY }}"] | .[] | select(length > 0)] | unique')"
Expand All @@ -98,15 +96,15 @@ runs:
echo "reviewers = ${reviewers}"
echo "BACKPORT_REVIEWERS=${reviewers}" >> $GITHUB_ENV
- name: Perform cherry pick
id: cherry-pick
uses: carloscastrojumo/[email protected]
- name: Perform pull request backporting
id: pr-backporting
uses: kiegroup/[email protected]
with:
branch: "${{ inputs.target-branch }}"
pull-request: ${{ inputs.original-pr-url }}
target-branch: "${{ inputs.target-branch }}"
auth: "${{ env.GITHUB_TOKEN }}"
title: "[${{ inputs.target-branch }}] ${{ inputs.title }}"
body: "**Backport:** ${{ inputs.original-pr-url }}\r\n\r\n${{ inputs.body }}"
labels: |
cherry-pick :cherries:
inherit_labels: false
cherry-pick-branch: "${{ inputs.target-branch }}_${{ inputs.original-pr-branch }}"
reviewers: ${{ env.BACKPORT_REVIEWERS }}
labels: "cherry-pick :cherries:"
inherit-labels: false
bp-branch-name: "${{ inputs.target-branch }}_${{ inputs.original-pr-branch }}"
reviewers: ${{ env.BACKPORT_REVIEWERS }}

0 comments on commit 4bca333

Please sign in to comment.