-
-
Notifications
You must be signed in to change notification settings - Fork 61
Manage fixing commit message by config file setting #233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -20,7 +20,8 @@ | |||
DEFAULT_CONFIG = collections.ChainMap({ | |||
'team': 'python', | |||
'repo': 'cpython', | |||
'check_sha': '7f777ed95a19224294949e1b4ce56bbffcb1fe9f'}) | |||
'check_sha': '7f777ed95a19224294949e1b4ce56bbffcb1fe9f', | |||
'fix_commit_msg': True}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpicky, can this be:
'fix_commit_msg': True,
})
@@ -175,7 +179,7 @@ def amend_commit_message(self, cherry_pick_branch): | |||
|
|||
|
|||
Co-authored-by: {get_author_info_from_short_sha(self.commit_sha1)}""" | |||
updated_commit_message = updated_commit_message.replace('#', 'GH-') | |||
# updated_commit_message = updated_commit_message.replace('#', 'GH-') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok this can be removed :)
cherry_picker/readme.rst
Outdated
Roundup bug tracker (https://bugs.python.org) behavior: | ||
#xxxx should point on issue xxxx but GH-xxxx points | ||
on pull-request xxxx. | ||
For projects with builtin GitHub bug tracker |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps rephrase a little bit:
"For projects using GitHub Issues, this option can be disabled."
Just wanted to make this an option/choice, whereas "should" can mean "you must change this value".
Fixed |
Thanks! |
Setting fix_commit_msg to True will replace the issue number in the commit message, from `#` to `GH-`.
Thanks @asvetlov 😄 Published to PyPI! |
As discussed before
#
->GH-
replacement should be default behavior as required by CPython but we need a way to disable this replacement by config file settings.