Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/codeowners-enforcement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ name: "CodeOwners Enforcement"

on:
pull_request:
merge_group:

jobs:
enforce-codeowners:
if: ${{ github.event_name == 'pull_request' }}
name: "Enforce"
runs-on: ubuntu-latest
permissions:
Expand All @@ -16,4 +18,3 @@ jobs:
uses: smartcontractkit/.github/actions/codeowners-sanity-check@codeowners-sanity-check/v1
env:
GITHUB_TOKEN: ${{ github.token }}

4 changes: 3 additions & 1 deletion .github/workflows/codeowners-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: "CodeOwners Validation"

on:
pull_request:
merge_group:

jobs:
# This job is necessary because the org-wide rulesets don't support event-based path filtering.
# (https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#running-your-pull_request-workflow-based-on-files-changed-in-a-pull-request)
# We include this job to filter the paths manually.
filter-changes:
if: ${{ github.event_name == 'pull_request' }}
name: Filter changes
runs-on: ubuntu-latest
permissions:
Expand All @@ -31,7 +33,7 @@ jobs:
permissions:
contents: read
id-token: write
if: ${{ needs.filter-changes.outputs.codeowners == 'true' }}
if: ${{ github.event_name == 'pull_request' && needs.filter-changes.outputs.codeowners == 'true' }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-draft-nudge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ name: PR Draft Nudge
on:
pull_request:
types: [opened]
merge_group:

permissions: {}

Expand All @@ -20,6 +21,7 @@ env:

jobs:
pr-draft-nudge:
if: ${{ github.event_name == 'pull_request' }}
name: PR Draft Nudge
runs-on: ubuntu-latest
timeout-minutes: 10
Expand Down
Loading