Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Checkcommits handle indented fixes - #114

Closed
jodh-intel wants to merge 4 commits into
clearcontainers:masterfrom
jodh-intel:checkcommits-handle-indented-fixes
Closed

jodh-intel wants to merge 4 commits into
clearcontainers:masterfrom
jodh-intel:checkcommits-handle-indented-fixes

Conversation

@jodh-intel

Copy link
Copy Markdown

No description provided.

James O. D. Hunt 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
jodh-intel force-pushed the checkcommits-handle-indented-fixes branch from e6cce6c to 7c78009 Compare July 5, 2017 13:17
@jodh-intel

Copy link
Copy Markdown
Author

Travis is being obstinate, so closing and re-opening...

@jodh-intel jodh-intel closed this Jul 5, 2017
mcastelino pushed a commit to mcastelino/tests that referenced this pull request Jan 23, 2019
…le-mgmt

CI: Update runtime git submodules.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant