Skip to content

Conversation

@Tearran
Copy link
Owner

@Tearran Tearran commented Jun 22, 2025

Summary by CodeRabbit

  • Chores
    • Updated and replaced the staging validation workflow with enhanced validation and tool script execution on relevant pull requests.
    • Removed obsolete workflows for staging validation and test validation.
    • Deleted an unused script for promoting modules from staging.
  • Bug Fixes
    • Improved validation script to enforce stricter checks, unify failure reporting, and expand duplicate detection.
  • Documentation
    • Clarified configuration metadata for submenu and yes/no box features, specifying options and helper functions.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 22, 2025

Warning

Rate limit exceeded

@Tearran has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 15 minutes and 38 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 0ba617e and 19d95d3.

📒 Files selected for processing (1)
  • tools/02_validate_module.sh (7 hunks)
## Walkthrough

This update removes obsolete GitHub Actions workflows and scripts, introduces an enhanced staging validation workflow, strengthens module validation logic, and updates configuration files for submenu and yes_no_box features to explicitly specify options and helpers. The main validation script now enforces stricter checks and broader duplicate detection.

## Changes

| File(s)                                                                 | Change Summary                                                                                                                 |
|-------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|
| .github/workflows/00_github_staging-validate.yml                        | Deleted old staging validation workflow.                                                                                       |
| .github/workflows/03_github_staging-validate.yml                        | Added new, more comprehensive staging validation workflow with enhanced script execution and reporting.                        |
| .github/workflows/05_github_tests-validate.yml.hold                     | Deleted test validation workflow for shell-based tests.                                                                        |
| tools/02_validate_module.sh                                             | Improved validation: stricter failure reporting, new required field (`options`), broader duplicate detection, logic refactor.  |
| tools/04_promote_module.sh.hold                                         | Deleted script for promoting modules from staging to target directories.                                                       |
| src/core/interface/submenu.conf, src/core/interface/yes_no_box.conf     | Updated configuration files to explicitly specify options and helper functions.                                                |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant GitHub Actions
    participant Runner
    participant tools/02_validate_module.sh
    participant tools/[NN]_*.sh

    GitHub Actions->>Runner: Trigger on PR modifying staging/ or tools/
    Runner->>tools/02_validate_module.sh: Validate staging directory and modules
    tools/02_validate_module.sh-->>Runner: Fail if missing/invalid, else continue
    Runner->>tools/[NN]_*.sh: For each script (except 02_validate_module.sh), execute
    tools/[NN]_*.sh-->>Runner: Return pass/fail status
    Runner-->>GitHub Actions: Report overall pass/fail

Possibly related PRs

  • Tearran/configng-v2#30: Introduces the yes_no_box module and its configuration, directly relating to the updated yes_no_box.conf helper specification.
  • Tearran/configng-v2#26: Renames debug files and updates the staging validation workflow, showing direct overlap in workflow and validation script changes.

Poem

In the warren, scripts once hopped,
Old workflows gone, their duties stopped.
New checks now guard the staging gate,
Helpers and options clearly state.
With stricter rules, the modules shine,
🐇 Code and carrots—both align!


<!-- walkthrough_end -->
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEejqANiS4USAM3jlIAd3wUA1nYv5nBgHLYzAKUXADMACwGAKqIITAkaBRUGEb6xuBQZPT4djgExGTKNPRMrOxcvPzCouJSMvJMSlSq6lo6aSZQcKiomHmEpORUxQplGJyQVM6QiIHMifJyCk0qapraumCG6aYGGkTqsNgCAPSuHl4+iCcADDcA+ge4RwL3iLhoBxhEYBJoFvBaNQSBpZMwLBwDAAiGEGADEcMgAEEAJIFIbA+izVgLfi5BiwTCkRBmWAkSBKKwjADi6gAEsdkWJ4PgMMhzp5vNMMGg2PQoQBlD5fIiQanAqEuNDIXAUeBEUi2bJYbjYCwWSYkACO2GkuBlhNwkG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7OaHASDcEMOLUzwdSUmGye+qYauH/eTqKH4ZADopAG8DExgNgMY16P01OFtT1bGTNIU8KfhMsf4Qs7gJswIO4y+Hkvszo5ue+GHGIXmelJGfBIhP2I4IfnIcrB1AuShI82iVqhApjNjCMNSWplszWCETmb7Uw21Cw+bmw5OZ82GTGXGXwwmWCUmUSpAH4HQ1HShO8z4uxgCLxILdCa6fXQVddf4rdbOEkRkuiyrtUnYdY2akYHY0wLYI49zs48bCcLINIE0/gPcKYThJ40/t4zXhzEGv4/kYEyNGS6E7lUQBE6flNlHofKK4gOK5K/gDhPEweeHDbaaKM70cLi1kmCC7o8EkerYPWCuIgJg6Dfs4M1UwAVM3M5/VQzDlIbI+qsqksxcxoBG/cPq4a1K7sy09wu4Zy+/u85BUMk5J65UwgbBZc4EdG2REaya/Hkiacxwy4XCfGxYMQk8zaSROjBC1VNC/2PC8kow/K6Gaiz1AbRi9Gdw9i+/Hini0I8mUtES8E8LN1OruNPGQO4I/NP5crpw8NGKexvMEoNteW8GJlFy1sDsJkI5gLGgHgAMPXlVH6xMFMMq7zEU5PM0GsG0JsIYJ0L6eoPcICAa86xGGKbQPdIkEaGkAYE+2gHau5AAGx2rhAMBdx2BqyhAkAgfhDhCZS0DQehAcTuS0AMAqIFwqIkAAAcdqKidq0HoHD7AHGQkAAA7KEDcHahR51TcF3OECQO5HcLQLhxR+5AIPhzR3anagwLh6oO5Lh+5JhyB7QGrHaqR0+0RzcDhyosh6EGgOELh+J+ECByx+EF3KEMJwRwIGB3YF3OJyB13OeBxAIDcFJ+RzcAwDcCQOBxRw53QBR+J7QAh7hyB1lBRyB7h4R7QCByorh0p6B4hxB2gBZx0FZzTsZ3Ryol3DTgwHagIDZ+5KECotZ2FwF3YKENp6ILQCouEKEIl13M56R2RxAM+9c2+/cB+xLHQPcFkA+0AA -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

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.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=Tearran/configng-v2&utm_content=34):

- 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.`
  -	`@coderabbitai modularize this function.`
- 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.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### 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](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in 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](https://docs.coderabbit.ai/guides/configure-coderabbit) 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](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

Tearran added 7 commits June 23, 2025 00:48
deleted:    staging/foo.conf
deleted:    staging/foo.md
deleted:    staging/foo.sh
renamed:    src/core/interface/submenu.conf -> staging/submenu.conf
renamed:    docs/submenu.md -> staging/submenu.md
renamed:    src/core/interface/submenu.sh -> staging/submenu.sh
@Tearran Tearran requested a review from Copilot June 23, 2025 01:19

This comment was marked as outdated.

Tearran added 4 commits June 23, 2025 01:26
new file:   src/core/interface/submenu.sh
deleted:    src/core/interface/submenu.conf
deleted:    src/core/interface/submenu.sh
renamed:    src/core/interface/yes_no_box.conf -> staging/yes_no_box.conf
renamed:    docs/yes_no_box.md -> staging/yes_no_box.md
renamed:    src/core/interface/yes_no_box.sh -> staging/yes_no_box.sh
@Tearran Tearran requested a review from Copilot June 23, 2025 01:45

This comment was marked as outdated.

@Tearran Tearran requested a review from Copilot June 23, 2025 01:53

This comment was marked as outdated.

@Tearran Tearran requested a review from Copilot June 23, 2025 02:10

This comment was marked as outdated.

@Tearran Tearran marked this pull request as ready for review June 23, 2025 02:13
@Tearran Tearran requested a review from Copilot June 23, 2025 02:25

This comment was marked as outdated.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🔭 Outside diff range comments (1)
tools/02_validate_module.sh (1)

82-90: Unreachable and duplicate empty-value handling for options

The generic empty-value check at lines 82–90 triggers a continue for all fields (including options), so the specific options case in the case block never executes. Consolidate the empty check for options into the generic block or reorder logic:

-  if [ -z "$value" ]; then
-    if [ "$field" = "helpers" ]; then
-      failed_fields+=(" helpers (no helper listed; must have at least _about_$feature)")
-    else
-      failed_fields+=(" $field (empty)")
-    fi
-    failed=1
-    continue
-  fi
+  if [ -z "$value" ]; then
+    case "$field" in
+      helpers)
+        failed_fields+=(" helpers (no helper listed; must have at least _about_$feature)");;
+      options)
+        failed_fields+=(" options (blank; should describe supported options or 'none')");;
+      *)
+        failed_fields+=(" $field (empty)");;
+    esac
+    failed=1
+    continue
+  fi

Then remove the redundant empty check under the options) case.

🧹 Nitpick comments (2)
tools/02_validate_module.sh (2)

139-158: Optional: Simplify duplicate detection with a single find invocation

The nested loops over ./src/./docs and .sh/.md/.conf work but can be simplified for readability and performance. For example:

- _check_duplicate_anywhere() {
-   local modname="$1"; local found=0
-   for dir in ./src ./docs; do
-     for ext in .sh .md .conf; do
-       while IFS= read -r file; do
-         [[ -z "$file" || "$file" == ./staging/* ]] && continue
-         echo "FAIL: Duplicate found: $file"; found=1
-       done < <(find "$dir" -type f -name "$modname$ext")
-     done
-   done
-   return $found
- }
+ _check_duplicate_anywhere() {
+   local modname="$1"; local found=0
+   while IFS= read -r file; do
+     echo "FAIL: Duplicate found: $file"; found=1
+   done < <(find ./src ./docs \
+             -type f \( -name "${modname}.sh" -o -name "${modname}.md" -o -name "${modname}.conf" \) \
+             -not -path "./staging/*")
+   return $found
+ }

This merges the searches and uses -not -path to skip staging.


185-187: Enhance unknown-command handling with usage output

On an unknown command you exit with an error but don’t guide the user. Consider printing the usage help:

-  *)
-    echo "Unknown command" >&2
-    exit 1
+  *)
+    echo "Unknown command: $cmd" >&2
+    _about_validate_module
+    exit 1
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between a52654c and 73057ef.

📒 Files selected for processing (1)
  • tools/02_validate_module.sh (7 hunks)
🧰 Additional context used
🧠 Learnings (1)
tools/02_validate_module.sh (1)
Learnt from: Tearran
PR: Tearran/configng-v2#25
File: tools/04_promote_module.sh:30-38
Timestamp: 2025-06-18T05:04:30.676Z
Learning: In tools/04_promote_module.sh, the user wants comprehensive validation of configuration files before promotion, checking required fields like 'feature', 'helpers', 'description', and 'parent' rather than just 'parent'. This maintains fail-fast behavior while ensuring only properly configured modules are promoted.

@Tearran Tearran requested a review from Copilot June 23, 2025 02:36
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

♻️ Duplicate comments (1)
tools/02_validate_module.sh (1)

7-19: Update usage help to include 'options' field

The usage message still lists required .conf fields without specifying options, which is now enforced by the script. Please update the help text to reflect all required non-comment fields: feature, options, helpers, description, parent, group, contributor, maintainer, port.

🧹 Nitpick comments (1)
tools/02_validate_module.sh (1)

182-185: Enhance unknown command handling

Instead of just printing "Unknown command", consider echoing the invalid input and showing the usage help for clarity:

@@ 182,4 +182,6
-       echo "Unknown command" >&2
-       exit 1
+       echo "Unknown command: $cmd" >&2
+       _about_validate_module
+       exit 1
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 73057ef and 5f09e9d.

📒 Files selected for processing (1)
  • tools/02_validate_module.sh (7 hunks)
🧰 Additional context used
🧠 Learnings (1)
tools/02_validate_module.sh (1)
Learnt from: Tearran
PR: Tearran/configng-v2#25
File: tools/04_promote_module.sh:30-38
Timestamp: 2025-06-18T05:04:30.676Z
Learning: In tools/04_promote_module.sh, the user wants comprehensive validation of configuration files before promotion, checking required fields like 'feature', 'helpers', 'description', and 'parent' rather than just 'parent'. This maintains fail-fast behavior while ensuring only properly configured modules are promoted.
🔇 Additional comments (5)
tools/02_validate_module.sh (5)

33-40: Consistent failure messaging in markdown check

The enhanced checks use FAIL: prefixes for missing or incomplete headers, which aligns with the script's fail-fast policy. No changes needed here.


51-56: Consistent failure messaging in shell check

The updated shell-file check now correctly emits FAIL: when _about_<modulename>() is missing. This is consistent with other checks.


58-63: Expanded REQUIRED_CONF_FIELDS declaration

Adding options, group, contributor, maintainer, and port strengthens configuration validation and aligns with your staging .conf files.


138-156: Duplicate detection logic is robust

The new _check_duplicate_anywhere function correctly scans ./src and ./docs, excludes ./staging, and uses found to return a non-zero exit status on duplicates. This fulfills the requirement for comprehensive duplicate checks.


168-176: Integrated duplicate check in module validation

You’ve correctly plugged the new duplicate check into the all branch, preserving fail-fast behavior when duplicates are found.

This comment was marked as outdated.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (2)
tools/02_validate_module.sh (2)

59-64: Consider strengthening 'port' validation
port is required but only checked for non-emptiness. You may want to ensure it's a valid integer (and optionally constrain it to a known range) for better correctness.


143-221: Remove obsolete _check_conf_refatoring function
This unused refactoring block duplicates _check_conf and is never called. Removing it will reduce confusion and improve maintainability.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 0c0e547 and 0ba617e.

📒 Files selected for processing (1)
  • tools/02_validate_module.sh (7 hunks)
🧰 Additional context used
🧠 Learnings (1)
tools/02_validate_module.sh (1)
Learnt from: Tearran
PR: Tearran/configng-v2#25
File: tools/04_promote_module.sh:30-38
Timestamp: 2025-06-18T05:04:30.676Z
Learning: In tools/04_promote_module.sh, the user wants comprehensive validation of configuration files before promotion, checking required fields like 'feature', 'helpers', 'description', and 'parent' rather than just 'parent'. This maintains fail-fast behavior while ensuring only properly configured modules are promoted.
🔇 Additional comments (6)
tools/02_validate_module.sh (6)

11-13: Unified 'FAIL' status in usage
Switching the incomplete-file message from "WARN" to "FAIL" aligns with the strict fail-fast approach.


33-35: Consistent failure prefix for missing header in Markdown checks
Changing the warning to a failure here reinforces the script’s fail-fast design.


37-39: Consistent failure prefix for single-header Markdown check
Reporting a lone top-level header as a failure is now consistent with other checks.


51-53: Consistent failure prefix for missing shell help function
Marking a missing _about_<modname>() as a failure now aligns with the updated validation policy.


223-243: Duplicate-detection function rewrite looks solid
The new _check_duplicate_anywhere correctly scans src/ and docs/, excludes ./staging, and treats duplicates as failures.


259-262: Integrated duplicate check in main loop
Invoking _check_duplicate_anywhere within the main validation loop ensures duplicate files block the promotion path as intended.

Comment on lines 16 to 18
- <modulename>.sh (must contain Help info in _about_<modulename>() function)
- <modulename>.conf (must have required non-comment fields: feature, helpers, description)
- Checks for duplicate-named files in src/** (warns if present)
- Checks for duplicate-named files in src/** and docs/** (outside of ./staging)
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Update .conf usage to reflect additional required fields
The usage text still lists only feature, helpers, and description. Since validation now requires options, parent, group, contributor, maintainer, and port, please update this line to reflect the full set.

🤖 Prompt for AI Agents
In tools/02_validate_module.sh around lines 16 to 18, the usage text for .conf
files lists only the fields feature, helpers, and description, but validation
now requires additional fields: options, parent, group, contributor, maintainer,
and port. Update the usage text line to include all these required non-comment
fields to accurately reflect the current validation requirements.

@Tearran Tearran requested a review from Copilot June 23, 2025 03:20

This comment was marked as outdated.

@Tearran Tearran requested a review from Copilot June 23, 2025 03:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request refines the workflow by updating the staging validation process, removing obsolete scripts and workflows, and enhancing the validation checks for modules.

  • Replaces the old staging and test validation workflows with improved validation logic and duplicate detection.
  • Updates configuration files (submenu and yes/no box) to clarify helper and options metadata.
  • Removes obsolete scripts and workflows no longer in use.

Reviewed Changes

Copilot reviewed 7 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tools/04_promote_module.sh.hold Removed obsolete script for promoting modules from staging.
tools/02_validate_module.sh Updated validation messages to report failures instead of warnings and replaced duplicate check with an expanded version.
src/core/interface/yes_no_box.conf Updated the helpers field to explicitly reference the helper function.
src/core/interface/submenu.conf Updated the options field and the helpers field for clarity.
.github/workflows/05_github_tests-validate.yml.hold Removed obsolete test workflow.
.github/workflows/03_github_staging-validate.yml Added new staging gate workflow with enhanced validation logic.
.github/workflows/00_github_staging-validate.yml Removed outdated staging workflow.
Comments suppressed due to low confidence (3)

tools/02_validate_module.sh:191

  • [nitpick] Consider providing additional context in the error message to guide the user on acceptable commands.
			echo "Unknown command" >&2

src/core/interface/submenu.conf:8

  • [nitpick] Ensure that the new placeholder text for options is clearly explained in accompanying documentation for user clarity.
options=<module_name help>

src/core/interface/yes_no_box.conf:17

  • [nitpick] Confirm that the helper function _about_yes_no_box is properly documented for consistent interface usage.
helpers=_about_yes_no_box

@Tearran Tearran merged commit 1967375 into main Jun 23, 2025
4 of 5 checks passed
@Tearran Tearran deleted the workflow branch June 23, 2025 03:31
This was referenced Jul 13, 2025
@coderabbitai coderabbitai bot mentioned this pull request Sep 5, 2025
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