Skip to content Skip to sidebar Skip to footer

How To Update A Pull Request Through Github Api

I want to update the title of a pull request and performing the below to achieve it :- (followed this doc https://developer.github.com/v3/pulls/#update-a-pull-request) data = {'ti

Solution 1:

The following worked for me:

import requests

token = "my-token"
url = "https://api.github.com/repos/:owner/:repo/pulls/:number"
payload = {
    "title": "New title"
}

r = requests.patch(url, auth=("username", token), json=payload)

print r.json()

Post a Comment for "How To Update A Pull Request Through Github Api"