monterail / guidelines

[DEPRECATED] We are Ruby on Rails experts from Poland. Think hussars. Solid & winged. These are our guidelines.
71 stars 17 forks source link

Use #noreview for commits not needing review #184

Closed Ostrzy closed 10 years ago

Ostrzy commented 11 years ago

Examples of such commits:

sheerun commented 11 years ago

[noreview] in commit description is probably more canonical

teamon commented 11 years ago

More canonical with what?

szajbus commented 11 years ago

@sheerun are there any conventions regarding commit messages? I mean, not our guidelines, but git world in general.

bartoszrega commented 11 years ago

sheerun commented 11 years ago

http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html + Travis CI and other tools use [flags] in square brackets in commit description, to not pollute git history.

porada commented 11 years ago

Travis checks for [ci skip] or [skip ci], so I propose [review skip] or something similar. #noreview sucks balls, because you have to find a workaround in order to put it as the first in a new line (such flags should never appear in the first line of commit message—neither should fixes #1 etc.)

sheerun commented 11 years ago

[skip review], [ci skip] is backwards https://github.com/travis-ci/travis-ci/issues/911

teamon commented 11 years ago
/\[(skip.*review)|(review.*skip)\]/
Ostrzy commented 11 years ago

This one we are using now. Not catching only backward one. /#?(no|skip)\s?(code\s?)?review/

teamon commented 11 years ago

I think "#" or "[ ]" should be mandatory to prevent false positives.

porada commented 11 years ago

Agreed with @teamon.

Ostrzy commented 11 years ago

@teamon argument is fine with me. So I guess decision is to use "[]"?

teamon commented 11 years ago
/\[\s*(no|skip)\s+(code\s*)?review\s*\]/ + reverse
jandudulski commented 11 years ago

:+1:

Ostrzy commented 11 years ago

@teamon Reverse You say? [review code no]?

teamon commented 11 years ago

[(no|skip) (code) review] or [review (no|skip)]

sheerun commented 11 years ago

who the hell is going to write [skip code review] instead of [skip review]

Ostrzy commented 11 years ago

@teamon The first one is quite natural, but when I read the second one, I feel like I should have lightsabre. I'm opting for no reverse. @sheerun I have no idea :grinning:

teamon commented 11 years ago

The reverse started with [ci skip] but I'm fine with "just" [(no|skip) review] and nothing more.

Ostrzy commented 11 years ago

:+1: for [(no|skip) review]

teamon commented 11 years ago

@Ostrzy PR plz

teamon commented 11 years ago

@Ostrzy

teamon commented 10 years ago

@Ostrzy !