@map-colonies/infra-copilot-instructions
v1.2.0
Published
A package that provides instructions for github copilot for the infra team
Maintainers
Keywords
Readme
infra-copilot-instructions
This package provides a convenient way to share custom instructions for GitHub Copilot in VS Code. for more information, see the GitHub Copilot documentation;
Installation
To install the package, run the following command:
npm install --save-dev @map-colonies/infra-copilot-instructionsInstructions
The package contains the following instructions:
- commit.md - Instructions for generating a commit message.
- code.md - Instructions for generating code.
- test.md - Instructions for generating tests.
when imported, the instructions can be accessed by their file name using the following path:
node_modules/@map-colonies/infra-copilot-instructions/instructions/<instruction_name>.mdUsage
Add the wanted instructions to VsCode settings.json file, under the related key specified in the GitHub Copilot documentation.
For example, if we wanted to add commit message generation instructions, we would add the following to the settings.json file:
{
"github.copilot.chat.commitMessageGeneration.instructions": [
{
"file": "node_modules/@map-colonies/infra-copilot-instructions/instructions/commit.md"
}
]
}