Skip to content

Instantly share code, notes, and snippets.

@vharsh
Created September 16, 2021 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vharsh/eb80adc4d0a64d4f03db99804eba0ab6 to your computer and use it in GitHub Desktop.
Save vharsh/eb80adc4d0a64d4f03db99804eba0ab6 to your computer and use it in GitHub Desktop.
import json
import requests
api = "https://api.github.com/repos"
url = input("The Repository URL: ")
repo = url.split('https://github.com')
tag_name = input("Tag name: ")
# Request a list of issues
print("REPO", repo)
expr = api + repo[1] + '/issues?labels=' + tag_name
# print(expr)
resp = requests.get(expr)
x = json.loads(resp.text)
for values in x:
print('#', values['number'])
print('Title', values['title'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment