Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
CI: update hotfix pr check workflow to parse backticks in pr title (#4158)
Chethan Rao15cacc5db4f7
diff --git a/.github/workflows/hotfix-pr-check.yml b/.github/workflows/hotfix-pr-check.ymlindex e178ba31c1..cf7fc47b5b 100644--- a/.github/workflows/hotfix-pr-check.yml+++ b/.github/workflows/hotfix-pr-check.yml@@ -13,6 +13,9 @@ jobs:hotfix_pr_check:name: Verify Hotfix PRruns-on: ubuntu-latest+ env:+ HOTFIX_PR_AUTHOR: ${{ github.event.pull_request.user.login }}+ HOTFIX_PR_TITLE: ${{ github.event.pull_request.title }}steps:- name: Checkout repositoryuses: actions/checkout@v4@@ -70,8 +73,8 @@ jobs:pr_base_ref=$(echo "${pr_info}" | jq -r '.baseRefName')pr_state=$(echo "${pr_info}" | jq -r '.state')- if [[ "${pr_author}" == "${{ github.event.pull_request.user.login }}" && \- "${pr_title}" == "${{ github.event.pull_request.title }}" && \+ if [[ "${pr_author}" == "${HOTFIX_PR_AUTHOR}" && \+ "${pr_title}" == "${HOTFIX_PR_TITLE}" && \"${pr_base_ref}" == "main" && \"${pr_state}" == "MERGED" ]]; then@@ -93,7 +96,7 @@ jobs:author_match_found=0for ((i = 0; i < ${#PR_AUTHORS[@]}; i++)); do- if [[ "${{github.event.pull_request.user.login}}" == "${PR_AUTHORS[i]}" ]]; then+ if [[ "${HOTFIX_PR_AUTHOR}" == "${PR_AUTHORS[i]}" ]]; then# If a match is found, set the flag to 1 and break out of the loopauthor_match_found=1break@@ -101,7 +104,7 @@ jobs:doneif [[ $author_match_found -eq 0 ]]; then- echo "::error::Hotfix PR author does not match any of the Original PR authors. Hotfix PR author: '${{ github.event.pull_request.user.login }}'"+ echo "::error::Hotfix PR author does not match any of the Original PR authors. Hotfix PR author: '${HOTFIX_PR_AUTHOR}'"fi@@ -109,7 +112,7 @@ jobs:title_match_found=0for ((i = 0; i < ${#PR_TITLES[@]}; i++)); do- if [[ "${{github.event.pull_request.title}}" == "${PR_TITLES[i]}" ]]; then+ if [[ "${HOTFIX_PR_TITLE}" == "${PR_TITLES[i]}" ]]; then# If a match is found, set the flag to 1 and break out of the looptitle_match_found=1break@@ -117,7 +120,7 @@ jobs:doneif [[ $title_match_found -eq 0 ]]; then- echo "::error::Hotfix PR title does not match any of the Original PR titles. Hotfix PR title: '${{ github.event.pull_request.title }}'"+ echo "::error::Hotfix PR title does not match any of the Original PR titles. Hotfix PR title: '${HOTFIX_PR_TITLE}'"fidiff --git a/.github/workflows/pr-convention-checks.yml b/.github/workflows/pr-convention-checks.ymlindex 37732e7c54..f8afdb5380 100644--- a/.github/workflows/pr-convention-checks.yml+++ b/.github/workflows/pr-convention-checks.yml@@ -51,7 +51,9 @@ jobs:- name: Verify commit message follows conventional commit standardsif: ${{ github.event_name == 'merge_group' }}shell: bash- run: cog verify '${{ github.event.merge_group.head_commit.message }}'+ env:+ COMMIT_MESSAGE: ${{ github.event.merge_group.head_commit.message }}+ run: cog verify "$COMMIT_MESSAGE"pr_linked_issues_check:name: Verify PR contains one or more linked issues