Skip to content

Conversation

@EyalDelarea
Copy link
Contributor

@EyalDelarea EyalDelarea commented Jul 8, 2025

  • The pull request is targeting the main branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....
  • All static analysis checks passed.
  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • All integration tests have passed locally as they cannot be automated yet.
  • All changes are detailed at the description. if not already covered at JFrog Documentation, new documentation have been added.

Add version-update Command to JFrog AppTrust CLI

Summary

Implements the jf apptrust version-update command (alias: jf vu) to update application version annotations including tags and custom properties. The command follows existing codebase patterns and integrates seamlessly with the current CLI architecture.

Command Usage

# Basic usage
jf vu my-app 1.2.3 --tag "release-1.2.3"
jf vu my-app 1.2.3 --properties "status=rc,validated"
jf vu my-app 1.2.3 --delete-property "old_param"

# Combined operations
jf vu my-app 1.2.3 --tag "release-1.2.3" --properties "status=rc;deployed_to=staging" --delete-property "old_param"

API Integration

  • Method: PATCH
  • Endpoint: /apptrust/api/v1/applications/{app_key}/versions/{version}
  • Response: 202 Accepted
  • Error Handling: 400, 401, 403, 404

Example Output

15:46:37 [🔵Info] Updating application version: my-app version: 1.2.3
15:46:37 [🔵Info] Successfully updated application version: my-app version: 1.2.3

@EyalDelarea EyalDelarea added the new feature Automatically generated release notes label Jul 8, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

Unit Tests Results

140 tests  +22   140 ✅ +22   0s ⏱️ ±0s
 25 suites ± 0     0 💤 ± 0 
  1 files   ± 0     0 ❌ ± 0 

Results for commit 99259ae. ± Comparison against base commit d7cdd81.

♻️ This comment has been updated with latest results.

@EyalDelarea EyalDelarea force-pushed the update_application_version branch from ee033ca to d3e3df2 Compare July 9, 2025 06:47
@EyalDelarea EyalDelarea marked this pull request as ready for review July 9, 2025 06:47
@EyalDelarea EyalDelarea requested a review from asafgabai July 9, 2025 06:47
@github-actions
Copy link
Contributor

👍 Frogbot scanned this pull request and did not find any new security issues.


@EyalDelarea EyalDelarea merged commit dc8e50e into main Jul 10, 2025
6 checks passed
@asafgabai asafgabai deleted the update_application_version branch October 8, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new feature Automatically generated release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants