openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Add GitHub Copilot instructions for repository

Open Copilot opened this issue 5 months ago • 0 comments

Configures repository-specific context for GitHub Copilot as requested in the issue.

Changes

  • Added .github/copilot-instructions.md with comprehensive guidance covering:
    • OSGi bundle architecture and component patterns
    • Maven build commands and Spotless formatting requirements
    • Java 21 + JUnit 5 testing conventions
    • Contribution workflow emphasizing git rebase over git merge
    • Common code patterns for Declarative Services and configuration handling
    • Project structure navigation for 100+ core bundles

The file provides Copilot with necessary context about the openHAB Core framework to generate appropriate suggestions for OSGi development, Maven builds, and project-specific conventions.

Original prompt

This section details on the original issue you should resolve

<issue_title>✨ Set up Copilot instructions</issue_title> <issue_description>Configure instructions for this repository as documented in Best practices for Copilot coding agent in your repository.

<Onboard this repo></issue_description>

Comments on the Issue (you are @copilot in this section)

  • Fixes openhab/openhab-core#5145

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot avatar Nov 23 '25 17:11 Copilot