-
Notifications
You must be signed in to change notification settings - Fork 146
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
Documentation on creating a pull request #148
Comments
I looked at the module pullrequests.py and found the class below expects to pass in "parent". class PullRequest(ResourceBase): Thanks, |
Here's the errors I encountered when I compile the code. The issue is the "parent" parameter, and I don't know what should the right value. Please shed some light on this. $python test.py ================================================= |
Ok, so here's what worked for me import stashy
from stashy.pullrequests import PullRequest, PullRequests
stash=stashy.connect("http://mybitbucker.com:7990", "admin", "admin")
client=stash._client;
projectKey = 'PROJECT_KEY_FROM_THAT_PROJECT_LIST_COLUMN_IN_THE_UI'
repoKey = 'MY_DESTINATION_REPO'
project = stash.projects[projectKey]
parent= project.repos['repoKey]
req=PullRequests("/projects/" + projectKey + "/repos/" + repoKey + "/pull-requests", client, parent)
# ^^^^ you super need that /pull-requests part of the path!!!!
creq=req.create("Talking CLI PR Title", "refs/heads/test-pr-python", "refs/heads/master", description='CLI Python', state='OPEN', reviewers="monica") |
Hi,
I am trying to use this package to create a pull request from the script. Is there a document that I read or shed some light on this?
Thanks,
Lynna
The text was updated successfully, but these errors were encountered: