When configuring remotes with url param keep checkoutFrom.revision
if able
#21921
Labels
area/dashboard
kind/enhancement
A feature request - must adhere to the feature request template.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
severity/P2
Has a minor but important impact to the usage or development of the system.
sprint/current
When creating a workspace with a factory url with a branch:
The
checkoutFrom.revision
for the resulting DW is7.59.x
, meaning, when opening the workspace, the branch that is checked out is7.59.x
:But, if we take the url above and configure remotes on top of it, by setting
origin
tohttps://github.com/dkwon17/che-plugin-registry
andupstream
tohttps://github.com/eclipse-che/che-plugin-registry
:The
checkoutFrom.revision
is not set in this case, because there is no guarantee that the7.59.x
branch exists in the newly configuredorigin
remote:Therefore, it would be great to have some way to configure the
checkoutFrom.revision
field when specifying remotes.Describe the solution you'd like
Add logic to confirm that the remote specified in
git.checkoutFrom.remote
contains the branch/revision from the Git Url used to create the project.If yes, set
checkoutFrom.revision
.Describe alternatives you've considered
#21922
Additional context
This feature is helpful for redhat-actions/try-in-web-ide#14, since it would help the GitHub action to set up remotes as well as set up the
checkoutFrom.revision
branch.The text was updated successfully, but these errors were encountered: