Skip to content

fix(opentofu): use semver versionFilter instead of latest#203

Merged
fr4nc1sc0-r4m0n merged 3 commits intomainfrom
copilot/update-semver-filter-policy
Feb 24, 2026
Merged

fix(opentofu): use semver versionFilter instead of latest#203
fr4nc1sc0-r4m0n merged 3 commits intomainfrom
copilot/update-semver-filter-policy

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

kind: latest picks the most recently published GitHub release, which can be out of semver order (e.g. a backported patch on an older minor published after a newer release). Switching to kind: semver ensures the policy always resolves the highest semantic version.

Changes

-      versionFilter:
-        kind: latest
+      versionFilter:
+        kind: semver
  • Policy.yaml: bumped policy version from 0.1.0 to 0.2.0 (minor release)
  • CHANGELOG.md: added 0.2.0 entry documenting the semver filter change
  • CONTRIBUTING.md: added guidance clarifying that new features, bug fixes, and enhancements require updating both Policy.yaml (with semver bump guidance) and CHANGELOG.md

Ref: https://www.updatecli.io/docs/plugins/resource/github_release/

Original prompt

This section details on the original issue you should resolve

<issue_title>opentofu policies picks up the latest available releases without any semver order</issue_title>
<issue_description>Let's use the semver filter without any patterns instead of the latest kind as explained at https://www.updatecli.io/docs/plugins/resource/github_release/

Policy file: https://github.com/elastic/oblt-updatecli-policies/blob/main/updatecli/policies/opentofu/version/updatecli.d/default.tpl

Type of change: minor change

Further details:

</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: v1v <2871786+v1v@users.noreply.github.com>
Copilot AI changed the title [WIP] Update opentofu policies to use semver filter fix(opentofu): use semver versionFilter instead of latest Feb 23, 2026
Copilot AI requested a review from v1v February 23, 2026 19:58
@v1v
Copy link
Member

v1v commented Feb 23, 2026

@copilot, if a new change it requires to release the policy for such, it requires a few changes:

  • Policy.yaml
  • CHANGELOG.md

Update them as a minor update.

Also update the existing documentation in the contributions.md to help with explaining that new features/ bug fixes, enhancements require updating those files accordingly

Co-authored-by: v1v <2871786+v1v@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Feb 23, 2026

@copilot, if a new change it requires to release the policy for such, it requires a few changes:

  • Policy.yaml
  • CHANGELOG.md
    ...

Done in commit 65706e0:

  • Policy.yaml bumped to 0.2.0
  • CHANGELOG.md updated with a 0.2.0 entry describing the semver filter change
  • CONTRIBUTING.md updated with explicit guidance that new features, bug fixes, and enhancements require bumping the Policy.yaml version (with semver guidance) and adding a CHANGELOG.md entry

@v1v
Copy link
Member

v1v commented Feb 23, 2026

Tests

image

@v1v v1v marked this pull request as ready for review February 23, 2026 20:03
@v1v v1v requested a review from a team as a code owner February 23, 2026 20:03
Copy link

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n left a comment

Choose a reason for hiding this comment

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

LGTM

@fr4nc1sc0-r4m0n fr4nc1sc0-r4m0n added this pull request to the merge queue Feb 24, 2026
Merged via the queue into main with commit b465a8e Feb 24, 2026
3 checks passed
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.

opentofu policies picks up the latest available releases without any semver order

3 participants