diff options
| author | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-03-16 11:39:32 -0400 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-03-16 12:49:54 -0400 |
| commit | 455e787b9cc8bd3342f86ddcf8ef4103fd811bb5 (patch) | |
| tree | e886dfe28038a4bb29ee5295157fbd848aaddda9 /.github | |
| parent | d7bf84324fb4b0789302bd0624697ba973dd7140 (diff) | |
Skipped check_commit_messages action on forks.
This was causing permission errors on private forks, e.g. the one
maintained by the Security Team for staging security patches.
Follow-up to f8665b1a7ff5e98d84f66ad0e958c3f175aa5d8b.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/check_commit_messages.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/check_commit_messages.yml b/.github/workflows/check_commit_messages.yml index 0f38e7baa8..3aef211f8d 100644 --- a/.github/workflows/check_commit_messages.yml +++ b/.github/workflows/check_commit_messages.yml @@ -13,7 +13,8 @@ permissions: jobs: check-commit-prefix: - if: startsWith(github.event.pull_request.base.ref, 'stable/') + # Only trigger on the main Django repository + if: github.repository == 'django/django' && startsWith(github.event.pull_request.base.ref, 'stable/') runs-on: ubuntu-latest timeout-minutes: 60 steps: @@ -70,6 +71,8 @@ jobs: echo "✅ All commits have the required prefix." check-commit-suffix: + # Only trigger on the main Django repository + if: github.repository == 'django/django' runs-on: ubuntu-latest timeout-minutes: 60 steps: |
