Created
September 16, 2021 12:03
-
-
Save vharsh/eb80adc4d0a64d4f03db99804eba0ab6 to your computer and use it in GitHub Desktop.
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 | |
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