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(conventional-commit-check): run checks on being added to queue (#1152)
Sanchith Hegdedaf1f2e0af1b
diff --git a/.github/workflows/conventional-commit-check.yml b/.github/workflows/conventional-commit-check.ymlindex 779e079be7..1e9e17f40e 100644--- a/.github/workflows/conventional-commit-check.yml+++ b/.github/workflows/conventional-commit-check.yml@@ -8,9 +8,13 @@ on:- reopened- ready_for_review+ merge_group:+ types:+ - checks_requested+permissions:# Reference: https://github.com/cli/cli/issues/6274- repository-projects: read+ repository-projects: writepull-requests: writeenv:@@ -35,6 +39,7 @@ jobs:- uses: Swatinem/[email protected]with:+ key: "pr_title_check"cache-on-failure: "true"- name: Install cocogitto@@ -43,13 +48,22 @@ jobs:- name: Verify PR title follows conventional commit standardsid: pr_title_check+ if: ${{ github.event_name == 'pull_request' }}shell: bashcontinue-on-error: truerun: cog verify "${{ github.event.pull_request.title }}"+ - name: Verify commit message follows conventional commit standards+ id: commit_message_check+ if: ${{ github.event_name == 'merge_group' }}+ shell: bash+ # Fail on error, we don't have context about PR information to update labels+ continue-on-error: false+ run: cog verify "${{ github.event.merge_group.head_commit.message }}"+# GitHub CLI returns a successful error code even if the PR has the label already attached- name: Attach 'S-conventions-not-followed' label if PR title check failed- if: ${{ steps.pr_title_check.outcome == 'failure' }}+ if: ${{ github.event_name == 'pull_request' && steps.pr_title_check.outcome == 'failure' }}shell: bashenv:GH_TOKEN: ${{ github.token }}@@ -60,7 +74,7 @@ jobs:# GitHub CLI returns a successful error code even if the PR does not have the label attached- name: Remove 'S-conventions-not-followed' label if PR title check succeeded- if: ${{ steps.pr_title_check.outcome == 'success' }}+ if: ${{ github.event_name == 'pull_request' && steps.pr_title_check.outcome == 'success' }}shell: bashenv:GH_TOKEN: ${{ github.token }}