summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/check_commit_messages.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/check_commit_messages.yml b/.github/workflows/check_commit_messages.yml
index ddb2340d88..2a3e5c5302 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: