From baed4af614b0dd28fb65d16c8d9f816aae1dfdff Mon Sep 17 00:00:00 2001 From: Neil MacDougall Date: Wed, 4 Jun 2025 18:18:52 +0100 Subject: [PATCH] Update backport bot to use issue URL rather than issue Number (#14461) * Limit with of cloud credential selector * Use URL rather than issue number * Update rke2.vue --- .github/workflows/port-issue.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/port-issue.yaml b/.github/workflows/port-issue.yaml index 2c59dc6119..9a022ccf96 100644 --- a/.github/workflows/port-issue.yaml +++ b/.github/workflows/port-issue.yaml @@ -52,6 +52,7 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} ORIGINAL_ISSUE_NUMBER: ${{ github.event.issue.number }} + ORIGINAL_ISSUE_URL: ${{ github.event.issue.html_url }} COMMENT_BODY: ${{ github.event.comment.body }} run: | declare -a additional_cmd @@ -95,7 +96,7 @@ jobs: fi fi if [ -n "$MILESTONE" ]; then - echo -e "This is a ${TYPE} issue for #${ORIGINAL_ISSUE_NUMBER}, automatically created via [GitHub Actions workflow]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID) initiated by @${GITHUB_ACTOR}\n" > $BODY + echo -e "This is a ${TYPE} issue for ${ORIGINAL_ISSUE_URL}, automatically created via [GitHub Actions workflow]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID) initiated by @${GITHUB_ACTOR}\n" > $BODY echo -e "\nOriginal issue body:\n" >> $BODY echo "${ORIGINAL_ISSUE}" | jq -r '.body[0:65536]' >> $BODY NEW_ISSUE=$(gh issue create -R "${GITHUB_REPOSITORY}" --title "${NEW_TITLE}" --body-file "${BODY}" -m "${MILESTONE}" "${additional_cmd[@]}")