Skip to content

Commit 172f444

Browse files
author
shrikrishna
committed
Get your github notifications
1 parent 50c3ba1 commit 172f444

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

get_notifications.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from github import Github
2+
from github_token import GITHUB_TOKEN, user, password
3+
4+
g1 = Github(GITHUB_TOKEN)
5+
g2 = Github(user, password)
6+
7+
user = g2.get_user()
8+
notifications = user.get_notifications()
9+
print(notifications)
10+
for notification in notifications:
11+
print (notification)

0 commit comments

Comments
 (0)