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

Added state revert HEAD to revert latest commit. #2948

Merged
merged 2 commits into from
Dec 15, 2023

Conversation

mitchell-as
Copy link
Contributor

@mitchell-as mitchell-as commented Dec 14, 2023

StoryDX-136 `state revert HEAD` reverts the HEAD commit

@github-actions github-actions bot changed the base branch from master to version/0-43-0-RC1 December 14, 2023 17:23
@mitchell-as mitchell-as requested a review from MDrakos December 15, 2023 16:18
@mitchell-as mitchell-as marked this pull request as ready for review December 15, 2023 16:18
if !strfmt.IsUUID(params.CommitID) {

commitID := params.CommitID
if !strfmt.IsUUID(commitID) && commitID != headCommitID {
Copy link
Member

Choose a reason for hiding this comment

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

I think here and the other equality check with the constant should be case insensitive. I think strings.EqualFold will get you there.

@mitchell-as mitchell-as requested a review from MDrakos December 15, 2023 18:14
@mitchell-as mitchell-as merged commit 3916611 into version/0-43-0-RC1 Dec 15, 2023
7 checks passed
@mitchell-as mitchell-as deleted the mitchell/dx-136 branch December 15, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants