Skip to content

Conversation

@greenc-FNAL
Copy link
Contributor

The following changes have been made:

  • A new .gersemirc configuration file has been added.
  • The cmake-format-check.yaml workflow has been updated to use gersemi --check.
  • The cmake-format-fix.yaml workflow has been updated to use gersemi --in-place.

The new implementation simplifies the workflow scripts by removing the need for a manual file search, relying instead on gersemi's built-in directory traversal.

Copilot AI review requested due to automatic review settings December 8, 2025 18:08
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 PR modernizes the CMake formatting infrastructure by replacing the moribund cmake-format tool with gersemi. The change simplifies the CI workflows by leveraging gersemi's built-in directory traversal capabilities, eliminating the need for manual file discovery logic.

  • Introduces .gersemirc configuration file with explanatory comments about the tool's opinionated nature
  • Updates both check and fix workflows to use gersemi commands
  • Removes complex bash scripts for file discovery in favor of gersemi's built-in directory scanning

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
.gersemirc Adds configuration file for gersemi with comments explaining migration from cmake-format
.github/workflows/cmake-format-check.yaml Replaces cmake-format check logic with simplified gersemi command
.github/workflows/cmake-format-fix.yaml Replaces cmake-format apply logic with simplified gersemi command

greenc-FNAL added a commit to greenc-FNAL/phlex that referenced this pull request Dec 8, 2025
greenc-FNAL added a commit to greenc-FNAL/phlex that referenced this pull request Dec 8, 2025
google-labs-jules bot and others added 3 commits December 9, 2025 09:37
…nstead of `cmake-format`.

The following changes have been made:
- A new `.gersemirc` configuration file has been added.
- The `cmake-format-check.yaml` workflow has been updated to use `gersemi --check`.
- The `cmake-format-fix.yaml` workflow has been updated to use `gersemi --in-place`.

The new implementation simplifies the workflow scripts by removing the need for a manual file search, relying instead on `gersemi`'s built-in directory traversal.
@greenc-FNAL greenc-FNAL force-pushed the feat-replace-cmake-format-with-gersemi branch from f372cd9 to be633c5 Compare December 9, 2025 15:37
@greenc-FNAL
Copy link
Contributor Author

@phlexbot format

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

No automatic fixes were necessary.

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2025

No automatic fixes were necessary.

greenc-FNAL added a commit to greenc-FNAL/phlex that referenced this pull request Dec 11, 2025
greenc-FNAL added a commit to greenc-FNAL/phlex that referenced this pull request Dec 11, 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.

1 participant