mirror of
https://git.juggalol.com/agatha/gitmon.git
synced 2024-11-22 23:46:42 +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 loguru import logger
|
||||||
from gitmon.api import GitHubApi
|
from gitmon.api import GitHubApi
|
||||||
|
|
||||||
|
from config import token
|
||||||
|
|
||||||
|
|
||||||
def print_event(event):
|
def print_event(event):
|
||||||
event_type = event.get('type')
|
event_type = event.get('type')
|
||||||
@ -14,7 +16,7 @@ def print_event(event):
|
|||||||
def main():
|
def main():
|
||||||
"""Main entry point."""
|
"""Main entry point."""
|
||||||
|
|
||||||
api = GitHubApi()
|
api = GitHubApi(token)
|
||||||
|
|
||||||
events = api.get_events()
|
events = api.get_events()
|
||||||
for event in events:
|
for event in events:
|
||||||
|
Loading…
Reference in New Issue
Block a user