openrewrite / openrewrite/rewrite-github-actions

SetupJavaUpgradeJavaVersion should accept semantic inputs and comparisons

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
1
Forks
9
Avg merge
5h 27m
Merged PRs (30d)
12

Description

Currently, SetupJavaUpgradeJavaVersion expects the input to be an integer

There are situations where it is desirable to upgrade to a specific minor version. For example 11.0.18

The recipe should be able to compare and understand that 11.0.17 < 11.0.18

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/main/java/org/openrewrite/github/SetupJavaUpgradeJavaVersion.java at the linked location and inspect how the input is parsed and versions are compared. Support semantic inputs such as 11.0.18, while preserving integer inputs; done means versions such as 11.0.17 and 11.0.18 compare in the expected order.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, java
Domain
devops, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.