-
Notifications
You must be signed in to change notification settings - Fork 3.9k
lint: check existence of release note #20417
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
Conversation
Targeted alternative (or perhaps short-term stand-in) for [1]. I think it's worth linting this sooner rather than later. Release notes: none. [1]: cockroachdb#18782
It would be great if this could come with a post-commit hook too. |
Yeah, that would be ideal, but that's the kind of work already done in #18782 (except in the context of a general commit linter, which I'm not really on board with). You can't just run a lint as a post-commit hook because it's way too slow. Perhaps @benesch can reduce #18782 to the uncontroversial part (linting release notes) and land it? Either way, I'm pretty confident that linting these today rather than next week makes sense. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just meant a little git post-commit hook that checks for the existence of the
Release notes line and prints a warning if it's missing. I don't want to have
to build or run any Go test program to just grep my commit message.
I suppose we can do this offline since you can't add git hooks via a repository
commit anyway.
Hmm? make build will install any hook in the githooks directory. It’s kind
of a hack but it works well.
Building a Go program is also not so bad when it happens automatically
during make build. You don’t even notice it, really; if you commit before
it gets built Git will simply proceed as normal.
On the subject of the commit message linter, I’m about out of bandwidth for
defending/maintaining it.
@tschottdorf, I’m a bit nervous about a linter whose output changes
depending upon which branch you run it on. Would prefer a combination of a
precommit githook and something in github pull request make. But don’t let
that stop you from merging this PR in the meantime. Something is much
better than nothing.
…On Sun, Dec 3, 2017 at 10:53 PM Jordan Lewis ***@***.***> wrote:
***@***.**** approved this pull request.
I just meant a little git post-commit hook that checks for the existence
of the
Release notes line and prints a warning if it's missing. I don't want to
have
to build or run any Go test program to just grep my commit message.
I suppose we can do this offline since you can't add git hooks via a
repository
commit anyway.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20417 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA15IASAbsTkgIhOI9wC8SA2ydavo01Bks5s82yigaJpZM4QzEft>
.
|
Heard @jordanlewis is cooking something up that has better ergonomics, closing this one! |
Targeted alternative (or perhaps short-term stand-in) for 1.
I think it's worth linting this sooner rather than later.
Release notes: none.