Skip to content

Commit 4d1024b

Browse files
add agent rule to use PR template by default when creating PRs (#7341)
1 parent b87f1ee commit 4d1024b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.claude/rules/pull-requests.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Pull Request Creation
2+
3+
When creating a pull request targeting `opendatahub-io/odh-dashboard`, you **MUST** use the PR template at `.github/pull_request_template.md` as the PR body structure. Read the template, fill in every section following the HTML comment instructions within it, and include the full checklist. This rule does not apply to PRs targeting other repositories.
4+
5+
## Agent-Specific Guidance
6+
7+
- **Honesty over completeness.** Only check `[x]` checklist items you can substantiate. If you didn't add tests, leave that box unchecked and explain why in the Test Impact section. If you only ran automated checks (lint, type-check), do not check "manually tested."
8+
- **Post-merge items stay unchecked.** The "After the PR is posted & before it merges" items are human tasks — leave them as `[ ]`.
9+
- **UI section is conditional.** If the change has no UI impact, omit the "If you have UI changes" checklist items entirely rather than leaving them unchecked.
10+
- **No bare summaries.** Never skip the template and use a plain paragraph as the PR body. Reviewers expect the full structure.

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Rules live in `.claude/rules/`. Read the relevant rule file before starting the
9696
| **Modular Architecture** | `modular-architecture.md` | When working on the plugin/extension system or package integration |
9797
| **Module Federation** | `module-federation.md` | When configuring Module Federation, webpack remotes, or shared dependencies |
9898
| **Module Onboarding** | `module-onboarding.md` | When creating a new package/module in the monorepo |
99+
| **Pull Requests** | `pull-requests.md` | When creating a pull request — must follow `.github/pull_request_template.md` |
99100
| **React** | `react.md` | When writing React components, hooks, or pages |
100101
| **Security** | `security.md` | When working on auth, secrets, input validation, or K8s API interactions |
101102
| **Testing Standards** | `testing-standards.md` | When working across multiple test types or choosing a testing strategy |

0 commit comments

Comments
 (0)