Skip to content

Instantly share code, notes, and snippets.

Created March 28, 2023 14:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Fetch accepted pull requests at GitHub in markdown format
import json
from requests import get
x = get("")
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}]({user}/{project2})")
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment