Skip to content

Commit d807a16

Browse files
Copilotafranken
andcommitted
Add applyTo front-matter to all .github/instructions files
Without the applyTo field, Copilot never auto-applies these instructions based on file context. Add glob patterns so the right instructions are included automatically: - test-instructions.md: **/*Test.kt, **/*IT.kt - implement-instructions.md: **/*.kt, **/*.java - refactor-instructions.md: **/*.kt, **/*.java - document-instructions.md: **/*.md - review-instructions.md: **/*.kt, **/*.java Co-authored-by: afranken <763000+afranken@users.noreply.github.com>
1 parent 6331295 commit d807a16

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

.github/instructions/document-instructions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
applyTo: "**/*.md"
3+
---
14
# Documentation Instructions for S3Mock
25

36
Read `AGENTS.md` (root + relevant module) before updating documentation.

.github/instructions/implement-instructions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
applyTo: "**/*.kt, **/*.java"
3+
---
14
# Implementation Instructions for S3Mock
25

36
Read `AGENTS.md` (root + relevant module) before making any changes.

.github/instructions/refactor-instructions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
applyTo: "**/*.kt, **/*.java"
3+
---
14
# Refactor Instructions for S3Mock
25

36
Read `AGENTS.md` (root + relevant module) before refactoring.

.github/instructions/review-instructions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
applyTo: "**/*.kt, **/*.java"
3+
---
14
# Review Instructions for S3Mock
25

36
Read `AGENTS.md` (root + relevant module) before reviewing code.

.github/instructions/test-instructions.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
applyTo: "**/*Test.kt, **/*IT.kt"
3+
---
14
# Test Instructions for S3Mock
25

36
Read `AGENTS.md` (root + relevant module) before writing tests.

0 commit comments

Comments
 (0)