Skip to content

add instruction file - #8155

Merged
timosachsenberg merged 1 commit into
developfrom
instruct
Aug 5, 2025
Merged

timosachsenberg merged 1 commit into
developfrom
instruct

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Aug 5, 2025 •

Copy link
Copy Markdown
Contributor

Description

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

How can I get additional information on failed tests during CI

Click to expand If your PR is failing you can check out

Advanced commands (admins / reviewer only)

Click to expand
  • /reformat (experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.
  • setting the label "NoJenkins" will skip tests for this PR on jenkins (saves resources e.g., on edits that do not affect tests)
  • commenting with rebuild jenkins will retrigger Jenkins-based CI builds

⚠️ Note: Once you opened a PR try to minimize the number of pushes to it as every push will trigger CI (automated builds and test) and is rather heavy on our infrastructure (e.g., if several pushes per day are performed).

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive guide for GitHub Copilot usage within the project, including development guidelines, project structure, testing information, and key considerations for code suggestions.

@coderabbitai

coderabbitai Bot commented Aug 5, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

A new documentation file, .github/copilot-instructions.md, has been added. This file provides detailed guidelines for using GitHub Copilot within the OpenMS project, including project overview, architecture, development practices, directory structure, testing infrastructure, and specific instructions for code suggestions. No code or public API changes are present.

Changes

Cohort / File(s) Change Summary
Copilot Instructions Documentation
.github/copilot-instructions.md
Added a markdown file detailing Copilot usage instructions, project overview, architecture, development guidelines, directory structure, and testing infrastructure for OpenMS.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

Review effort 1/5

Poem

In the warren of docs, a new guide appears,
For Copilot bunnies with floppy-eared cheers.
Instructions are clear, the structure laid out,
So coders and bots know what OpenMS is about.
With carrots of wisdom and testing insight,
This doc helps all hoppers code just right! 🥕

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch instruct

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.github/copilot-instructions.md (1)

79-97: Specify a language for the fenced diagram block (MD040)

Markdown-lint flags this block because the opening fence lacks a language identifier.
Adding a generic identifier such as text (or bash if you plan to add commands later) silences the warning and improves renderer consistency.

-```
+```text
 OpenMS/
 ├── cmake/                   # CMake build system files
@@
 └── tools/                   # Development utilities
-```
+``` 
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a00e106 and 491155d.

📒 Files selected for processing (1)
  • .github/copilot-instructions.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: in the openms project, doxygen is run with a non-standard working directory, so snippet paths that m...
Learnt from: pjones
PR: OpenMS/OpenMS#8042
File: doc/doxygen/install/install-linux.doxygen:37-37
Timestamp: 2025-05-23T10:58:51.257Z
Learning: In the OpenMS project, Doxygen is run with a non-standard working directory, so snippet paths that may look incorrect (like "../../tools/ci/deps-ubuntu.sh" in doc/doxygen/install/install-linux.doxygen) are actually correct. The snippet markers in shell scripts use the format "# [marker_name]" rather than the alternative "#! [marker_name]" format.

Applied to files:

  • .github/copilot-instructions.md
🪛 LanguageTool
.github/copilot-instructions.md

[uncategorized] ~110-~110: Do not mix variants of the same word (‘analyze’ and ‘analyse’) within a single text.
Context: ...cus When providing code suggestions: - Analyze existing code patterns before suggestin...

(EN_WORD_COHERENCY)

🪛 markdownlint-cli2 (0.17.2)
.github/copilot-instructions.md

79-79: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: build-and-test (macos-14, xcode, 15.0.1)
  • GitHub Check: build-and-test (macos-13, xcode, 14.2)
  • GitHub Check: build-and-test (ubuntu-22.04, clang++, 15)
  • GitHub Check: build-and-test (windows-2022, cl.exe, 14.36)
  • GitHub Check: build-and-test (ubuntu-22.04, g++, 11)
  • GitHub Check: cppcheck-test

@timosachsenberg
timosachsenberg merged commit a469916 into develop Aug 5, 2025
@timosachsenberg
timosachsenberg deleted the instruct branch August 5, 2025 12:18
Comment thread .github/copilot-instructions.md Resolved
Comment thread .github/copilot-instructions.md Resolved
@coderabbitai coderabbitai Bot mentioned this pull request Aug 5, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants