Skip to content

chore(docs): add doc that ocmconfigs are merged#1991

Merged
frewilhelm merged 4 commits into
open-component-model:mainfrom
frewilhelm:adjust-config-doc-and-debug
Mar 16, 2026
Merged

chore(docs): add doc that ocmconfigs are merged#1991
frewilhelm merged 4 commits into
open-component-model:mainfrom
frewilhelm:adjust-config-doc-and-debug

Conversation

@frewilhelm

@frewilhelm frewilhelm commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Add an info that OCM configurations from default locations are merged into one OCM configuration

Summary by CodeRabbit

  • Documentation
    • Clarified help text to explain that multiple configuration files found are merged in discovery order.
    • Updated reference docs across 32 commands to consistently describe configuration file lookup and merge behavior.

Total: 32 documentation updates to improve consistency and user guidance across the CLI.

Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>
@coderabbitai

coderabbitai Bot commented Mar 16, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Added a single help-text sentence to the CLI configuration flag explaining that multiple discovered configuration files are merged in discovery order; the same explanatory sentence was added to 27 command reference documentation pages.

Changes

Cohort / File(s) Summary
Source Code Configuration
cli/cmd/configuration/ocm_config.go
Added one sentence to RegisterConfigFlag help text clarifying that multiple discovered config files are merged in discovery order.
Command Reference Documentation
cli/docs/reference/ocm*.md, cli/docs/reference/ocm_*/*.md
Added identical note across 27 documentation files indicating that when multiple configuration files are found in standard lookup locations they are merged in the order discovered.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

area/documentation

Suggested reviewers

  • jakobmoellerdev
  • matthiasbruns
  • Skarlso

Poem

🐰 I hopped through docs both near and far,
Adding one line to show how config files are,
Found and merged in discovery's tune,
Together they hum beneath the moon —
A tidy trail of settings, snug as a rune.

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore(docs): add doc that ocmconfigs are merged' directly and accurately reflects the main change: adding documentation that OCM configurations are merged from default locations.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added kind/chore chore, maintenance, etc. size/s Small labels Mar 16, 2026
@frewilhelm frewilhelm marked this pull request as ready for review March 16, 2026 10:34
@frewilhelm frewilhelm requested a review from a team as a code owner March 16, 2026 10:34
@frewilhelm frewilhelm enabled auto-merge (squash) March 16, 2026 10:41

@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.

🧹 Nitpick comments (1)
cli/docs/reference/ocm.md (1)

43-43: Consider documenting merge precedence/order explicitly.

“Will be merged together” is helpful, but users may still not know which location wins on key conflicts. Adding one short sentence about precedence (or linking to it) would prevent ambiguity.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/docs/reference/ocm.md` at line 43, Update the line that reads "If several
configuration files are found in the above locations, they will be merged
together." to explicitly state the merge precedence/order (or add a one-sentence
pointer to the canonical precedence doc) so users know which location wins on
key conflicts; locate this text in ocm.md (the sentence beginning "If several
configuration files are found in the above locations...") and append a concise
sentence like "When keys conflict, values from X override Y" or a link to the
detailed precedence rules.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@cli/docs/reference/ocm.md`:
- Line 43: Update the line that reads "If several configuration files are found
in the above locations, they will be merged together." to explicitly state the
merge precedence/order (or add a one-sentence pointer to the canonical
precedence doc) so users know which location wins on key conflicts; locate this
text in ocm.md (the sentence beginning "If several configuration files are found
in the above locations...") and append a concise sentence like "When keys
conflict, values from X override Y" or a link to the detailed precedence rules.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7c9cf959-303b-4569-80e1-3a71c524dfd5

📥 Commits

Reviewing files that changed from the base of the PR and between f48b5f2 and 59e415d.

📒 Files selected for processing (30)
  • cli/cmd/configuration/ocm_config.go
  • cli/docs/reference/ocm.md
  • cli/docs/reference/ocm_add.md
  • cli/docs/reference/ocm_add_component-version.md
  • cli/docs/reference/ocm_completion.md
  • cli/docs/reference/ocm_completion_bash.md
  • cli/docs/reference/ocm_completion_fish.md
  • cli/docs/reference/ocm_completion_powershell.md
  • cli/docs/reference/ocm_completion_zsh.md
  • cli/docs/reference/ocm_describe.md
  • cli/docs/reference/ocm_describe_types.md
  • cli/docs/reference/ocm_download.md
  • cli/docs/reference/ocm_download_plugin.md
  • cli/docs/reference/ocm_download_resource.md
  • cli/docs/reference/ocm_generate.md
  • cli/docs/reference/ocm_generate_docs.md
  • cli/docs/reference/ocm_get.md
  • cli/docs/reference/ocm_get_component-version.md
  • cli/docs/reference/ocm_get_types.md
  • cli/docs/reference/ocm_plugin.md
  • cli/docs/reference/ocm_plugin_registry.md
  • cli/docs/reference/ocm_plugin_registry_get.md
  • cli/docs/reference/ocm_plugin_registry_list.md
  • cli/docs/reference/ocm_sign.md
  • cli/docs/reference/ocm_sign_component-version.md
  • cli/docs/reference/ocm_transfer.md
  • cli/docs/reference/ocm_transfer_component-version.md
  • cli/docs/reference/ocm_verify.md
  • cli/docs/reference/ocm_verify_component-version.md
  • cli/docs/reference/ocm_version.md

Signed-off-by: Frederic Wilhelm <frederic.wilhelm@sap.com>

@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.

🧹 Nitpick comments (1)
cli/docs/reference/ocm_sign.md (1)

43-43: Good addition! Consider clarifying merge precedence.

The note about configuration file merging is helpful and clearly communicates the behavior. The wording is clean and grammatically correct.

For enhanced clarity, you could optionally specify what happens when multiple configuration files contain conflicting settings (e.g., "later files override earlier ones" or "earlier files take precedence"). However, this is a nice-to-have enhancement rather than a requirement.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@cli/docs/reference/ocm_sign.md` at line 43, Update the merge-note sentence in
the ocm_sign.md text to explicitly state the precedence rule when conflicts
occur: replace or augment "If multiple configuration files are found, they will
be merged in the order they are discovered." with wording that clarifies which
file wins on conflict (for example, "If multiple configuration files are found,
they will be merged in the order they are discovered; when the same setting
appears in multiple files, values from later files override earlier ones.").
Ensure the revised sentence appears where the original merge-note is located so
readers can immediately understand conflict resolution behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@cli/docs/reference/ocm_sign.md`:
- Line 43: Update the merge-note sentence in the ocm_sign.md text to explicitly
state the precedence rule when conflicts occur: replace or augment "If multiple
configuration files are found, they will be merged in the order they are
discovered." with wording that clarifies which file wins on conflict (for
example, "If multiple configuration files are found, they will be merged in the
order they are discovered; when the same setting appears in multiple files,
values from later files override earlier ones."). Ensure the revised sentence
appears where the original merge-note is located so readers can immediately
understand conflict resolution behavior.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1934e4b3-e411-40ab-a385-e646283316f6

📥 Commits

Reviewing files that changed from the base of the PR and between 59e415d and 05ca039.

📒 Files selected for processing (30)
  • cli/cmd/configuration/ocm_config.go
  • cli/docs/reference/ocm.md
  • cli/docs/reference/ocm_add.md
  • cli/docs/reference/ocm_add_component-version.md
  • cli/docs/reference/ocm_completion.md
  • cli/docs/reference/ocm_completion_bash.md
  • cli/docs/reference/ocm_completion_fish.md
  • cli/docs/reference/ocm_completion_powershell.md
  • cli/docs/reference/ocm_completion_zsh.md
  • cli/docs/reference/ocm_describe.md
  • cli/docs/reference/ocm_describe_types.md
  • cli/docs/reference/ocm_download.md
  • cli/docs/reference/ocm_download_plugin.md
  • cli/docs/reference/ocm_download_resource.md
  • cli/docs/reference/ocm_generate.md
  • cli/docs/reference/ocm_generate_docs.md
  • cli/docs/reference/ocm_get.md
  • cli/docs/reference/ocm_get_component-version.md
  • cli/docs/reference/ocm_get_types.md
  • cli/docs/reference/ocm_plugin.md
  • cli/docs/reference/ocm_plugin_registry.md
  • cli/docs/reference/ocm_plugin_registry_get.md
  • cli/docs/reference/ocm_plugin_registry_list.md
  • cli/docs/reference/ocm_sign.md
  • cli/docs/reference/ocm_sign_component-version.md
  • cli/docs/reference/ocm_transfer.md
  • cli/docs/reference/ocm_transfer_component-version.md
  • cli/docs/reference/ocm_verify.md
  • cli/docs/reference/ocm_verify_component-version.md
  • cli/docs/reference/ocm_version.md
✅ Files skipped from review due to trivial changes (4)
  • cli/docs/reference/ocm_transfer.md
  • cli/docs/reference/ocm_transfer_component-version.md
  • cli/docs/reference/ocm_download_resource.md
  • cli/docs/reference/ocm_describe_types.md
🚧 Files skipped from review as they are similar to previous changes (17)
  • cli/docs/reference/ocm_completion_fish.md
  • cli/docs/reference/ocm_get_component-version.md
  • cli/docs/reference/ocm_version.md
  • cli/docs/reference/ocm_download.md
  • cli/docs/reference/ocm_download_plugin.md
  • cli/docs/reference/ocm_verify.md
  • cli/docs/reference/ocm_sign_component-version.md
  • cli/docs/reference/ocm_plugin_registry_get.md
  • cli/docs/reference/ocm_get.md
  • cli/cmd/configuration/ocm_config.go
  • cli/docs/reference/ocm_generate.md
  • cli/docs/reference/ocm_completion_zsh.md
  • cli/docs/reference/ocm_describe.md
  • cli/docs/reference/ocm_verify_component-version.md
  • cli/docs/reference/ocm_plugin.md
  • cli/docs/reference/ocm_completion_bash.md
  • cli/docs/reference/ocm_generate_docs.md

@frewilhelm frewilhelm merged commit 422d24c into open-component-model:main Mar 16, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/chore chore, maintenance, etc. size/s Small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants