This repository was archived by the owner on May 6, 2020. It is now read-only.
Repository navigation
Checkcommits handle indented fixes - #114
Closed
jodh-intel wants to merge 4 commits into
Closed
jodh-intel wants to merge 4 commits into
jodh-intel wants to merge 4 commits into
Conversation
added 3 commits
July 5, 2017 13:43
The first character in each line is special: if it is non-alphabetic, line limits don't apply. However, previously that check was performed before the "Fixes #XXX" check meaning if a "Fixes #XXX" line was indented, it would not be considered. This would result in a failure if the user specified "--need-fixes". With this change, an indented "Fixes #XXX" is now permitted. Fixes clearcontainers#113. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Move the regexp pattern compilation to NewCommitConfig(). This makes the code simpler and safer: previously, the tests were creating their own patterns which were not the same as the tool (the tests were allowing a case insensitive "Fixes #XXX" match, whereas the tool was only allowing a leading-caps match). This fix also restricts performing the regexp matching to those cases where the user requires a SOB or Fixes comment. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Allow all forms of whitespace between the "Fixes" and "#XXX" tokens (previously, only space was allowed). Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add a couple of tests to ensure that line length limits don't apply to Fixes lines. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
jodh-intel
force-pushed
the
checkcommits-handle-indented-fixes
branch
from
July 5, 2017 13:17
e6cce6c to
7c78009
Compare
Author
|
Travis is being obstinate, so closing and re-opening... |
mcastelino
pushed a commit
to mcastelino/tests
that referenced
this pull request
Jan 23, 2019
…le-mgmt CI: Update runtime git submodules.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.