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

ci(conventional-commit-check): fix checks being skipped for PRs (#1219)

Sanchith Hegde6ba580ffb689
diff --git a/.github/workflows/conventional-commit-check.yml b/.github/workflows/conventional-commit-check.yml
index aeb6e405a2..8e7c433464 100644
--- a/.github/workflows/conventional-commit-check.yml
+++ b/.github/workflows/conventional-commit-check.yml
@@ -61,7 +61,7 @@ jobs:
- name: Verify PR title follows conventional commit standards
id: pr_title_check
- if: ${{ github.event_name == 'pull_request' }}
+ if: ${{ github.event_name == 'pull_request_target' }}
shell: bash
continue-on-error: true
run: cog verify '${{ github.event.pull_request.title }}'
@@ -76,7 +76,7 @@ jobs:
# 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: ${{ github.event_name == 'pull_request' && steps.pr_title_check.outcome == 'failure' }}
+ if: ${{ github.event_name == 'pull_request_target' && steps.pr_title_check.outcome == 'failure' }}
shell: bash
env:
GH_TOKEN: ${{ github.token }}
@@ -87,7 +87,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: ${{ github.event_name == 'pull_request' && steps.pr_title_check.outcome == 'success' }}
+ if: ${{ github.event_name == 'pull_request_target' && steps.pr_title_check.outcome == 'success' }}
shell: bash
env:
GH_TOKEN: ${{ github.token }}