Skip to content

Commit 4174429

Browse files
authored
[GitHub] Move Copilot instructions for LLVM (llvm#165763)
GitHub allows specifying custom instructions for the GitHub Copilot reviewer [1]. Currently, we have a top level file, but GitHub supports having different instructions for different files, which requires creating an `instructions` subdirectory with multiple files and a patch it applies to. This PR moves the top level file into a new `instructions` directory, and make it apply to the `llvm/` subdirectory. I spoke with Mircea at the Dev Meeting and that should match his original intent. [1] https://docs.github.com/en/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review#customizing-copilots-reviews-with-custom-instructions
1 parent 51c6a04 commit 4174429

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/copilot-instructions.md renamed to .github/instructions/llvm.instructions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
applyTo: llvm/**/*
3+
---
4+
15
When performing a code review, pay close attention to code modifying a function's
26
control flow. Could the change result in the corruption of performance profile
37
data? Could the change result in invalid debug information, in particular for

0 commit comments

Comments
 (0)