Skip to content

Commit ad8f0bc

Browse files
🩹 fix(GitHub): Use dedicated PAT to handle notifications.
1 parent d70637f commit ad8f0bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.bin/github.mark_as_read

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if len(sys.argv) < 2: sys.exit(1)
1212

1313
thread_id = sys.argv[1]
1414

15-
token = github.token()
15+
token = github.token('/notifications')
1616
url = github.api('/notifications/threads/{thread_id}', thread_id=thread_id)
1717

1818
github.patch(url, token=token)

.bin/github.notifications

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import sys
99
import json
1010
import github
1111

12-
token = github.token()
12+
token = github.token('/notifications')
1313
first_page = github.api('/notifications?per_page=100')
1414

1515
for page in github.pages(first_page, token=token):

0 commit comments

Comments
 (0)