Skip to content

Conversation

@PeterSuna
Copy link
Contributor

JIRA: LIGHTY-394

JIRA: LIGHTY-394
Signed-off-by: Peter Suna <[email protected]>
@gemini-code-assist
Copy link

Summary of Changes

Hello @PeterSuna, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request prepares the "lighty-yang-validator" project for its next development cycle by updating the project version across key configuration and documentation files. This ensures that all references to the project's development snapshot version are consistent, facilitating a smooth transition into the "24.0.0-SNAPSHOT" phase.

Highlights

  • Version Update: The project version has been incremented from "23.0.0-SNAPSHOT" to "24.0.0-SNAPSHOT" to prepare for the next development phase.
  • Documentation Alignment: The "README.md" file has been updated to reflect the new version number in distribution file names and commands.
  • Codebase Consistency: The version string displayed in the "LyvParameters.java" file has been updated to match the new project version.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request prepares for the next development phase by updating the project version to 24.0.0-SNAPSHOT. The changes correctly update the version in pom.xml, README.md, and a Java source file. My review focuses on improving maintainability by removing hardcoded version strings. I've suggested changes in README.md to make the instructions version-agnostic and recommended a way to load the version from pom.xml in the Java code to avoid manual updates in the future. These changes will make future version bumps easier and less error-prone.

As a minor point, the title in README.md still refers to version 23. You might want to update that as well for consistency.

```

The distribution will be stored in the **"target"** directory, as a file called *lighty-yang-validator-23.0.0-SNAPSHOT-bin.zip*
The distribution will be stored in the **"target"** directory, as a file called *lighty-yang-validator-24.0.0-SNAPSHOT-bin.zip*

Choose a reason for hiding this comment

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

medium

Hardcoding the version in the filename makes the documentation require manual updates for each release, which is error-prone. Consider using a more generic description that doesn't need to change with every version bump.

Suggested change
The distribution will be stored in the **"target"** directory, as a file called *lighty-yang-validator-24.0.0-SNAPSHOT-bin.zip*
The distribution will be stored in the **"target"** directory, as a file called *lighty-yang-validator-<version>-bin.zip*.


```
unzip lighty-yang-validator-23.0.0-SNAPSHOT-bin.zip
unzip lighty-yang-validator-24.0.0-SNAPSHOT-bin.zip

Choose a reason for hiding this comment

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

medium

Hardcoding the version in this command requires manual updates for each release. Using a wildcard would make the command more robust across versions and less prone to documentation errors.

Suggested change
unzip lighty-yang-validator-24.0.0-SNAPSHOT-bin.zip
unzip lighty-yang-validator-*-bin.zip

private final ArgumentParser lyvArgumentParser = ArgumentParsers.newFor("LYV").build()
.defaultHelp(true)
.version("Version: ${prog} 23.0.0-SNAPSHOT\nContact: [email protected]")
.version("Version: ${prog} 24.0.0-SNAPSHOT\nContact: [email protected]")

Choose a reason for hiding this comment

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

medium

Hardcoding the version string here creates a maintenance burden, as it needs to be manually updated for each release. This is error-prone, as it can be easily forgotten.

A better approach would be to fetch the version from the pom.xml at build time. You could, for example:

  1. Create a properties file (e.g., version.properties) in src/main/resources with content like version=${project.version}.
  2. Ensure resource filtering is enabled in your pom.xml for this file.
  3. Load this properties file at runtime to get the version string.

This would ensure the version is always in sync with the project's version defined in pom.xml.

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