vault/.github/copilot-instructions.md
Vault Automation 5d36ecf565
Set up Copilot instructions entrypoint (#11946) (#11951)
Create copilot-instructions.md for the Copilot agent
to automatically apply instructions.
Remove instructions for missing specific/ folder.
Add code comment instructions for better commenting patterns and
naming conventions.

Co-authored-by: Angelo Cordon <angelo.cordon@hashicorp.com>
2026-01-26 12:01:59 -08:00

2.2 KiB

GitHub Copilot Instructions for Vault Enterprise

This repository contains coding guidelines and best practices for the Vault Enterprise project.

Instruction Files

The .github/instructions/ directory contains domain-specific coding guidelines:

Go Development

  • golang.instructions.md: General Go programming guidelines covering code style, package organization, error handling, and idiomatic patterns
  • golang_tests.instructions.md: Best practices for writing tests in Go, including table-driven tests, test structure, and integration testing

Ember.js UI Development

General Development

How These Instructions Work

GitHub Copilot automatically applies these instructions based on the applyTo patterns defined in each file's frontmatter. For example:

  • Go-specific rules apply to **/*.go files
  • Go test rules apply to **/*_test.go files
  • Ember UI rules apply to vault/ui/**/* files

When writing code, Copilot will reference the appropriate instruction files to provide context-aware suggestions that align with project standards.