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

Allow empty commit message with a specified flag #2927

Merged
merged 14 commits into from
Feb 10, 2022

Conversation

Jonathan-Rosenberg
Copy link
Contributor

Added a --allow-empty-message flag that allows a commit to have an empty message, i.e.:
lakectl commit lakefs://<repo>/<branch> -m "<whitespace character/s or nothing at all>" --allow-empty-message
will be allowed, yet
lakectl commit lakefs://<repo>/<branch> -m "<whitespace character/s or nothing at all>"
will not be allowed.

Closes #1395

@CLAassistant
Copy link

CLAassistant commented Feb 8, 2022

CLA assistant check
All committers have signed the CLA.

@Jonathan-Rosenberg Jonathan-Rosenberg changed the title 1395 - Allow empty commit message with a specified flag Allow empty commit message with a specified flag Feb 8, 2022
@Jonathan-Rosenberg Jonathan-Rosenberg added the include-changelog PR description should be included in next release changelog label Feb 8, 2022
Copy link
Contributor

@johnnyaug johnnyaug left a comment

Choose a reason for hiding this comment

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

Very nice! Really like the tests.
Left minor comments

cmd/lakectl/cmd/commit.go Show resolved Hide resolved
cmd/lakectl/cmd/commit.go Outdated Show resolved Hide resolved
cmd/lakectl/cmd/commit.go Outdated Show resolved Hide resolved
cmd/lakectl/cmd/commit.go Outdated Show resolved Hide resolved
@@ -425,6 +425,10 @@ components:
type: object
additionalProperties:
type: string
date:
Copy link
Contributor

Choose a reason for hiding this comment

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

[belong in another PR]

@itaidavid
Copy link
Contributor

Commenting here as I couldn't find how to comment on file rename - why was nessie/files/ro_1k renamed to nessie/files/ro_1k.txt?

nessie/lakectl_test.go Outdated Show resolved Hide resolved
cmd/lakectl/cmd/commit.go Outdated Show resolved Hide resolved
cmd/lakectl/cmd/commit.go Outdated Show resolved Hide resolved
cmd/lakectl/cmd/commit.go Outdated Show resolved Hide resolved
cmd/lakectl/cmd/commit.go Outdated Show resolved Hide resolved
cmd/lakectl/cmd/commit.go Outdated Show resolved Hide resolved
Copy link
Contributor

@johnnyaug johnnyaug left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@nopcoder nopcoder left a comment

Choose a reason for hiding this comment

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

LGTM, after attending the rest of the reviewers question.

cmd/lakectl/cmd/commit.go Outdated Show resolved Hide resolved
@Jonathan-Rosenberg Jonathan-Rosenberg merged commit 2181dfe into master Feb 10, 2022
@Jonathan-Rosenberg Jonathan-Rosenberg deleted the feature/empty-commit-flag branch February 10, 2022 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
include-changelog PR description should be included in next release changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disallow commit without a message
5 participants