Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Provide API wrapper for cherry picking commits#236

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gpocentek merged 8 commits intopython-gitlab:masterfromcgumpert:cherry_pick_commit
Mar 21, 2017
Merged

Provide API wrapper for cherry picking commits#236

gpocentek merged 8 commits intopython-gitlab:masterfromcgumpert:cherry_pick_commit
Mar 21, 2017

Conversation

cgumpert
Copy link
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.

Copy link
Contributor

@gpocentekgpocentek left a comment

Choose a reason for hiding this comment

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

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

Thank you!

@@ -43,6 +43,12 @@ Get the diff for a commit:
:start-after: # diff
:end-before: # end diff

Cherry-pick a commit into another branch
Copy link
Contributor

Choose a reason for hiding this comment

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

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

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
Contributor

Choose a reason for hiding this comment

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

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

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

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.

@gpocentekgpocentek merged commit22bf128 intopython-gitlab:masterMar 21, 2017
@gpocentek
Copy link
Contributor

Thank you for this patch!

@cgumpertcgumpert deleted the cherry_pick_commit branchApril 10, 2017 20:25
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpocentekgpocentekgpocentek requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@cgumpert@gpocentek

[8]ページ先頭

©2009-2025 Movatter.jp