Skip to content

Commit 9661039

Browse files
committed
cursor(rules[git-commits]) Use component name first
1 parent db47652 commit 9661039

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.cursor/rules/git-commits.mdc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ globs: git-commits: Git commit message standards and AI assistance | *.git/* .gi
66

77
## Format
88
```
9-
type(scope[component]): concise description
9+
component(commit type[sub-component/method]): concise description
1010

1111
why: explanation of necessity/impact
1212
what:
@@ -16,6 +16,11 @@ what:
1616
refs: #issue-number, breaking changes, links
1717
```
1818

19+
## Component types
20+
- pyproject(ruff[per-file-ignores]) Ignore B010 (`set-attr-with-constant`) for `path/to/file.py`
21+
- Pane(chore[capture_pane]): Fix typo
22+
- Pane(tests[capture_pane]): Handle edgecase for capture pane
23+
1924
## Commit Types
2025
- `feat`: New features/enhancements
2126
- `fix`: Bug fixes
@@ -24,6 +29,8 @@ refs: #issue-number, breaking changes, links
2429
- `chore`: Maintenance tasks (deps, tooling)
2530
- `test`: Test-related changes
2631
- `style`: Code style/formatting
32+
- `<component-name>`: If it involves a core file or component / class, e.g.
33+
just start with that Pane(chore)
2734

2835
## Guidelines
2936
- Subject line: max 50 chars

0 commit comments

Comments
 (0)