Commit Graph

22 Commits

Author SHA1 Message Date
Tom Alexander
ed2e5159df Better handling of events. 2023-03-06 15:48:15 -05:00
Tom Alexander
9a27ee8d5b Fix handling of empty responses. 2022-05-12 10:33:06 -04:00
Tom Alexander
155fb7ae00 Add todo comment. 2022-05-12 10:12:37 -04:00
Tom Alexander
1be697b8bf Throw away results from the first poll since those are historical. 2022-05-12 10:11:19 -04:00
Tom Alexander
c8b9e73c75 Add call to create notification. 2022-05-12 09:32:26 -04:00
Tom Alexander
11ddea7f53 Parse out the title and state of the pull request. 2022-05-12 09:14:26 -04:00
Tom Alexander
51bbe22bdf Add parsing of the URL to view the pull request. 2022-05-12 09:06:52 -04:00
Tom Alexander
f46a5f8a9c Filtering to 'opened' pull request events. 2022-05-12 08:53:20 -04:00
Tom Alexander
be9dcee422 Move the handling of events into a struct.
I am going to start parsing fields out of the json event objects, so it makes sense to give each event its own type to avoid the verbosity of parsing the values out of the json object every time they are needed.
2022-05-12 08:37:15 -04:00
Tom Alexander
f7d2a2e57d Filtering for pull request events. 2022-05-08 18:28:40 -04:00
Tom Alexander
f36546a470 Fallback to the previous poll interval duration if no poll interval is specified. 2022-05-08 18:10:41 -04:00
Tom Alexander
df00268d35 Switch to logging. 2022-05-08 17:03:49 -04:00
Tom Alexander
58aa8b249d Support detecting no events, but not sleeping after first one. 2022-05-08 00:06:35 -04:00
Tom Alexander
211d8681b2 Sleep for ratelimit depletion also. 2022-05-07 23:11:42 -04:00
Tom Alexander
1811b60b06 Add functions for other event lists. 2022-05-07 22:45:24 -04:00
Tom Alexander
e8c4fb16ff Getting a stream of events from github. 2022-05-07 22:28:26 -04:00
Tom Alexander
b7111994cd Making API request but failing to decode the results. 2022-05-07 18:31:10 -04:00
Tom Alexander
857c237319 Start githubctl module. 2022-04-10 17:15:57 -04:00
Tom Alexander
b22580bee9 async main. 2022-04-10 17:09:33 -04:00
Tom Alexander
8e0ae62fe4 Add reqwest. 2022-04-10 16:45:59 -04:00
Tom Alexander
675b3638cd Add tokio and sqlx. 2022-04-10 16:44:18 -04:00
Tom Alexander
e8742061f0 Initial commit. 2022-04-10 16:33:50 -04:00