Skip to content

Add stages to release bundle evidence create#120

Merged
dortam888 merged 2 commits intojfrog:mainfrom
dortam888:add_stages_to_release_bundle_create
Aug 4, 2025
Merged

Add stages to release bundle evidence create#120
dortam888 merged 2 commits intojfrog:mainfrom
dortam888:add_stages_to_release_bundle_create

Conversation

@dortam888
Copy link
Contributor

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • Appropriate label is added to auto generate release notes.
  • I used gofmt for formatting the code before submitting the pull request.
  • PR description is clear and concise, and it includes the proposed solution/fix.

Support Stages in release bundle evidence creation

@dortam888 dortam888 added the new feature Automatically generated release notes label Aug 4, 2025
@dortam888 dortam888 force-pushed the add_stages_to_release_bundle_create branch from d321a8d to 3b519e9 Compare August 4, 2025 12:00
@dortam888 dortam888 force-pushed the add_stages_to_release_bundle_create branch from 3b519e9 to cc2de3b Compare August 4, 2025 12:12
}

const EvdDefaultUser = "JFrog CLI"
const EvdStagesSupportedVersion = "7.141.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

I didn't find where it's used. Is it needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Removing it :)

return fetchCurrentStage(promotionDetails)
}

func initReleasebundlePromotionDetails(releaseBundle, releaseBundleVersion, project string) (lifecycleServices.ReleaseBundleDetails, lifecycleServices.GetPromotionsOptionalQueryParams) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The word 'Bundle' should start with an uppercase letter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

V 👍

return rbDetails, queryParams
}

func fetchCurrentStage(promotionDetails lifecycleServices.RbPromotionsResponse) string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

May be its better to rename this function to selectCurrentStage or selectLatestStage

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Change to getReleaseBundleCurrentPromotionStage believe its better than select

@dortam888 dortam888 merged commit 60ae696 into jfrog:main Aug 4, 2025
10 of 11 checks passed
naveenku-jfrog pushed a commit to naveenku-jfrog/jfrog-cli-artifactory that referenced this pull request Aug 13, 2025
When creating evidence on a release bundle automatically adding the promotion stage (environment) into the statement and reflect in the data.
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