-
-
Notifications
You must be signed in to change notification settings - Fork 954
gitPython - Pull request url. Once we do git push, is there a way to get the PR url back from the cmd line? I was not able to get any libraries return that. Is this possible? #1149
-
Beta Was this translation helpful? Give feedback.
All reactions
I think what you can try is to implement your own progress delegate (search for 'progress') to see if it gets to see the given line of the remote.
Generally GitPython sees all lines sent by the remote and definitely makes all of them available to the delegate. It's probably worth perusing the code to see how exactly it works, and how it is used.
Please feel free to post follow ups on the closed issue.
Replies: 2 comments
-
Somehow I want retrieve pull request url:
git push origin branch_xxx
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 12 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 754 bytes | 754.00 KiB/s, done.
Total 7 (delta 6), reused 0 (delta 0)
remote: Push is OK
remote:
remote: Create pull request for branch_xxx
> remote: https://bitbucket.XXX.com/projects/test/repos/monolith/pull-requests?create&sourceBranch=refs/heads/branch_xxx
I hope i have explained myself. The only workaround I currently do is: I fabricate that URL myself within the application. But it will be good if there is a gitPython library which would do so.
Beta Was this translation helpful? Give feedback.
All reactions
-
I think what you can try is to implement your own progress delegate (search for 'progress') to see if it gets to see the given line of the remote.
Generally GitPython sees all lines sent by the remote and definitely makes all of them available to the delegate. It's probably worth perusing the code to see how exactly it works, and how it is used.
Please feel free to post follow ups on the closed issue.
Beta Was this translation helpful? Give feedback.