FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Provide API wrapper for cherry picking commits by cgumpert · Pull Request #236 · python-gitlab/python-gitlab · GitHub

Repository navigation

Provide API wrapper for cherry picking commits - #236

Merged
gpocentek merged 8 commits into
python-gitlab:masterfrom
cgumpert:cherry_pick_commit
Mar 21, 2017
Merged

gpocentek merged 8 commits into
python-gitlab:masterfrom
cgumpert:cherry_pick_commit

Conversation

Copy link
Copy Markdown
Contributor

This is a possible implementation for addressing #235. It allows to cherry pick individual commits through the Gitlab API both from the python code as well as from the command line. The documentation has been updated.

gpocentek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Only 2 nitpicks, but the patch looks good. Could you make the minor changes and I'll merge.

Thank you!

Comment thread docs/gl_objects/commits.rst Outdated
:start-after: # diff
:end-before: # end diff

Cherry-pick a commit into another branch

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Please end the line with a colon (:) to introduce the example.

Comment thread gitlab/objects.py Outdated
GitlabCherryPickError: If the cherry pick could not be applied.
"""
url = '/projects/{0:s}/repository/commits/{1:s}/cherry_pick'.format(
self.project_id, self.id)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

For the sake of consistency could you use the old %()s format? Yes, this is nitpicking :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I had problems with keeping the line length below the limit of 79 characters. I worked around it now by introducing another local variable with a short name. If you have any other suggestion on how to break this string across two lines, I'd be happy to hear.

gpocentek merged commit 22bf128 into python-gitlab:master Mar 21, 2017

Copy link
Copy Markdown
Contributor

Thank you for this patch!

cgumpert deleted the cherry_pick_commit branch April 10, 2017 20:25
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 join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL