Revert "[AI] Add project-level hook to enforce PR creation rules" (#7491)

* Revert "[AI] Add project-level hook to enforce PR creation rules (#7471)"

This reverts commit d6253c86eb.

* Add release notes for PR #7491

* Delete upcoming-release-notes/7491.md

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Matiss Janis Aboltins
2026-04-14 18:12:53 +01:00
committed by GitHub
parent 54a26ae199
commit c7876a58cb
2 changed files with 0 additions and 23 deletions

View File

@@ -1,17 +0,0 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"if": "Bash(gh pr create*)",
"command": "echo '{\"hookSpecificOutput\":{\"hookEventName\":\"PreToolUse\",\"permissionDecision\":\"ask\",\"permissionDecisionReason\":\"STOP: Read .github/agents/pr-and-commit-rules.md FIRST, then create the PR following its rules (title prefix, labels, blank template).\"}}'",
"statusMessage": "Checking PR creation rules..."
}
]
}
]
}
}

View File

@@ -1,6 +0,0 @@
---
category: Maintenance
authors: [MatissJanis]
---
AI: force Claude Code to read PR creation rules