Skip to content

Add Copilot instructions for repository context#7173

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/set-up-copilot-instructions
Draft

Add Copilot instructions for repository context#7173
Copilot wants to merge 2 commits intomasterfrom
copilot/set-up-copilot-instructions

Conversation

Copy link

Copilot AI commented Feb 27, 2026

Adds .github/copilot-instructions.md to provide Copilot with repository-specific context about LightGBM's architecture, conventions, and development workflows.

Coverage

  • Structure: Core components (src/, include/, python-package/, R-package/, tests/)
  • Languages: C++17 standards, Python 3.9+ conventions, R package patterns
  • Build: CMake options, compilation flags, build commands
  • Testing: Google Test (C++), pytest (Python) patterns and fixtures
  • Linting: cpplint, ruff, mypy, pre-commit hooks configuration
  • Architecture: Key classes (Boosting, Dataset, TreeLearner, etc.) and their roles
  • Patterns: Dataset creation, model training, C API usage examples
  • Anti-patterns: Common mistakes to avoid (e.g., modifying external_libs/, committing generated files)

File Location

.github/copilot-instructions.md  (351 lines)

Structured as reference documentation that Copilot can use to generate context-appropriate suggestions aligned with existing project conventions.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • gh.io
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

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.

</issue_description>

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


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: shiyu1994 <14541765+shiyu1994@users.noreply.github.com>
Copilot AI changed the title [WIP] Configure Copilot instructions for repository Add Copilot instructions for repository context Feb 27, 2026
Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pre-emptively leaving a blocking review so I have a chance to review again if this is ever taken out of draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨ Set up Copilot instructions

3 participants