mirror of
https://git.juggalol.com/agatha/gitmon.git
synced 2024-12-26 23:56:39 +00:00
Use access token
This commit is contained in:
parent
0f323c6cfe
commit
fb7c7e7bdf
4
main.py
4
main.py
@ -2,6 +2,8 @@
|
||||
from loguru import logger
|
||||
from gitmon.api import GitHubApi
|
||||
|
||||
from config import token
|
||||
|
||||
|
||||
def print_event(event):
|
||||
event_type = event.get('type')
|
||||
@ -14,7 +16,7 @@ def print_event(event):
|
||||
def main():
|
||||
"""Main entry point."""
|
||||
|
||||
api = GitHubApi()
|
||||
api = GitHubApi(token)
|
||||
|
||||
events = api.get_events()
|
||||
for event in events:
|
||||
|
Loading…
Reference in New Issue
Block a user