Skip to content

Commit

Permalink
ci(pr-convention-checks): trigger checks on pull_request instead of…
Browse files Browse the repository at this point in the history
… `pull_request_target` event for testing
  • Loading branch information
SanchithHegde committed Jan 18, 2024
1 parent fbcd17a commit 98dc2fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pr-convention-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# pull request whenever this trigger is used.
# Since we do not have a checkout step in this workflow, this is an
# acceptable use of this trigger.
pull_request_target:
pull_request:
types:
- opened
- edited
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
crate: cocogitto

- name: Verify PR title follows conventional commit standards
if: ${{ github.event_name == 'pull_request_target' }}
if: ${{ github.event_name == 'pull_request' }}
shell: bash
env:
TITLE: ${{ github.event.pull_request.title }}
Expand All @@ -65,15 +65,15 @@ jobs:

- name: Generate GitHub app token
id: generate_app_token
if: ${{ github.event_name == 'pull_request_target' }}
if: ${{ github.event_name == 'pull_request' }}
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}
private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}
owner: ${{ github.event.repository.owner.login }}

- name: Verify PR contains one or more linked issues
if: ${{ github.event_name == 'pull_request_target' }}
if: ${{ github.event_name == 'pull_request' }}
shell: bash
env:
GH_TOKEN: ${{ steps.generate_app_token.outputs.token }}
Expand Down

0 comments on commit 98dc2fd

Please sign in to comment.