~asbalderson/jenkins-launchpad-plugin/private-repo

« back to all changes in this revision

Viewing changes to jlp/commands/autoland.py

  • Committer: Joshua Powers
  • Date: 2018-07-31 15:57:38 UTC
  • Revision ID: josh.powers@canonical.com-20180731155738-mrx11p80215o3kyu
autoland: fix git commit message with author

The autolander for git was not taking the message returned by the author
reviewer. This new message removes the author for the text and removes the
extra white space.

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
        author_string = '%s <%s>' % (source_author, source_email)
214
214
 
215
215
    # Lint the commit message
216
 
    message, errors = lint_commit_message(raw_msg)
 
216
    message, errors = lint_commit_message(message)
217
217
    if errors:
218
218
        error_msg = 'Commit message lints:\n - ' + ' - '.join(errors)
219
219
        logger.debug(error_msg)