Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

chore(travis): add commitplease validation to ci-checks #16097

Merged
merged 2 commits into from
Jul 12, 2017

Conversation

Narretz
Copy link
Contributor

@Narretz Narretz commented Jul 11, 2017

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
chore

What is the current behavior? (You can also link to an open issue here)
PR commit messages are not validated

What is the new behavior (if this is a feature change)?
travis validates PR commit messages

Does this PR introduce a breaking change?
No

Please check if the PR fulfills these requirements

Other information:

@Narretz Narretz force-pushed the chore-travis-commitplease branch 2 times, most recently from b9792d7 to 8239dc4 Compare July 11, 2017 17:41
This will provide feedback to contributors without getting in the way of writing invalid commit messages locally. The git hook integration is turned off.

Committers who push directly to the repo can be expected to use correct commit messages ;) Most changes go through PRs anyway.

Related to angular#14888
@Narretz Narretz force-pushed the chore-travis-commitplease branch from 8239dc4 to 677962b Compare July 11, 2017 19:07
Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

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

How come this PR doesn't fail its own commitplease checks, since you have a squash me commit in there?
I don't think CI should pass for such commits.

@Narretz
Copy link
Contributor Author

Narretz commented Jul 12, 2017

I saw this more as a help for contributors to check their PR commit message validity. PRs must be merged manually anyway and since we can squash via the UI I think it's unnecessary to require a full commit message on each fixup / squash.

@gkalpak
Copy link
Member

gkalpak commented Jul 12, 2017

I think fixup/squash commits are fine (contributors don't use them that much anyway 😃), but commitplease will also accept WIP and Merge branch/<SHA>... as valid, which isn't ideal.

(Given that this is an extra check compared to what we had before, I don't mind it being less strict.)

@petebacondarwin petebacondarwin dismissed their stale review July 12, 2017 09:32

OK, I am happy to go with your opinion here.

@Narretz Narretz merged commit 0616dde into angular:master Jul 12, 2017
@Narretz Narretz deleted the chore-travis-commitplease branch July 12, 2017 10:03
@Narretz
Copy link
Contributor Author

Narretz commented Jul 12, 2017

I've opened an issue about WIP / Merge in the commitplease REPO. It's odd that this is hardcoded: jzaefferer/commitplease#101

If you're being strict, Angular style commit message actually disallows Merge commits

Narretz added a commit to Narretz/angular.js that referenced this pull request Jul 14, 2017
This will provide feedback to contributors without getting in the way of writing invalid commit messages locally. 

The git hook integration is turned off.

Committers who push directly to the repo can be expected to use correct commit messages ;) Most changes go through PRs anyway.

Note that "Merge commit" messages and everything starting with "WIP" is always allowed by commitplease. Follow issue jzaefferer/commitplease#101 for more info.

Related to angular#14888 
Closes angular#16097
Narretz added a commit to Narretz/angular.js that referenced this pull request Jul 14, 2017
This will provide feedback to contributors without getting in the way of writing invalid commit
messages locally.

The git hook integration is turned off.

Committers who push directly to the repo can be expected to use correct commit messages ;)
Most changes go through PRs anyway.

Note that "Merge commit" messages and everything starting with "WIP" is always allowed
by commitplease. Follow issue jzaefferer/commitplease#101 for more info.

Related to angular#14888
Closes angular#16097
Narretz added a commit that referenced this pull request Jul 14, 2017
This will provide feedback to contributors without getting in the way of writing invalid commit
messages locally.

The git hook integration is turned off.

Committers who push directly to the repo can be expected to use correct commit messages ;)
Most changes go through PRs anyway.

Note that "Merge commit" messages and everything starting with "WIP" is always allowed
by commitplease. Follow issue jzaefferer/commitplease#101 for more info.

Related to #14888
Closes #16097
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants