-
Notifications
You must be signed in to change notification settings - Fork 100
fix: keep .rulesync/.aiignore exception effective in gitignore #1460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -92,6 +92,18 @@ describe("gitignoreCommand", () => { | |||||||||
| expect(content).not.toContain("**/.agent/skills/"); | ||||||||||
| }); | ||||||||||
|
|
||||||||||
| it("should place .rulesync/.aiignore exception after .aiignore ignore entries", async () => { | ||||||||||
| vi.mocked(fileExists).mockResolvedValue(false); | ||||||||||
|
|
||||||||||
| await gitignoreCommand(mockLogger); | ||||||||||
|
|
||||||||||
| const writeCall = vi.mocked(writeFileContent).mock.calls[0]; | ||||||||||
| expect(writeCall).toBeDefined(); | ||||||||||
| const content = writeCall![1]; | ||||||||||
|
|
||||||||||
|
||||||||||
| expect(content).toContain("**/.aiignore"); | |
| expect(content).toContain("!.rulesync/.aiignore"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**/.aiignoreis currently tagged only for thekirotarget, but Junie also generates a root.aiignorefile (seeJunieIgnore.getSettablePaths()and e2e ignore coverage). Withrulesync gitignore --targets junie, this entry won’t be included, so the generated.aiignorewon’t be gitignored. Consider changing this registry tag to apply to bothkiroandjunie(e.g.,target: ["kiro","junie"]) so target-filtered output stays consistent.