Skip to content

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

fix(ci): Require at least one open linked issue (#14944)

Pa137dc60ab20a7
diff --git a/.github/workflows/pr-convention-checks.yml b/.github/workflows/pr-convention-checks.yml
index 2d481020c4..9b969ecb80 100644
--- a/.github/workflows/pr-convention-checks.yml
+++ b/.github/workflows/pr-convention-checks.yml
@@ -124,12 +124,15 @@ jobs:
issue_state="$(gh issue view --repo "${repository_with_owner}" --json 'state' "${issue_number}" --jq '.state')"
# Transform `${issue_state}` to lowercase for comparison
- if [[ "${issue_state,,}" != 'open' ]]; then
- echo "::error::At least one of the linked issues is not open"
- exit 1
+ if [[ "${issue_state,,}" == 'open' ]]; then
+ echo "PR contains at least one open linked issue"
+ exit 0
fi
done <<< "${linked_issues}"
+ echo "::error::PR does not contain any open linked issues"
+ exit 1
+
pr_labeler:
name: Attach suitable labels to PR
if: ${{ github.event_name == 'pull_request_target' }}