Skip to content

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? #990

Description

@mehtapinal
No description provided.

Activity

  1. changed the title [-]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 possile?[/-] [+]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?[/+] on Feb 24, 2020
  2. mehtapinal commented on Feb 24, 2020

    @mehtapinal
    Author

    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.

  3. Byron commented on Feb 25, 2020

    @Byron
    Member

    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.

  4. reopened this on Feb 26, 2021
  5. locked and limited conversation to collaborators on Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions