Fetch accepted pull requests at GitHub in markdown format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from requests import get | |
x = get("https://api.contributed.jdocklabs.co.uk/user/imhemish") | |
y = json.loads(x.text) | |
print("# Accepted pull requests at GitHub") | |
for user in y.keys(): | |
pull_requests = y[user]['pullRequests'] | |
for project in pull_requests.keys(): | |
for project2, pull_requests2 in pull_requests.items(): | |
for pull_request_text, pull_request_url in pull_requests2.items(): | |
print(f"- [{pull_request_text}]({pull_request_url}) at [{user}/{project2}](https://github.com{user}/{project2})") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
uses https://github.com/jdockerty/contributed-to API