Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: git checkout command #1591

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: git checkout command #1591

wants to merge 1 commit into from

Conversation

vedranjukic
Copy link
Member

feat: git checkout command

Description

Added the git checkout command to the Git service and Workspace Toolbox.

  • This change requires a documentation update
  • I have made corresponding changes to the documentation

@vedranjukic vedranjukic requested review from a team as code owners December 26, 2024 14:15

type GitCheckoutRequest struct {
Path string `json:"path" validate:"required"`
Branch string `json:"branch" validate:"required"`
Copy link
Member

Choose a reason for hiding this comment

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

I suggest these props to be consistent with GitCloneRequest and to be more explicit:

	Branch   *string `json:"branch,omitempty" validate:"optional"`
	CommitID *string `json:"commit_id,omitempty" validate:"optional"`

P.S. It actually might be better to refactor CommitID to SHA so that is consistent with our GitRepository domain object.

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.

2 participants