See #3265 (comment) for context.
Happy to take the work to fix this, filing an issue for tracking.
Question about ergonomics, though... the current library (as well as the GitHub API spec[0]) return the thread ID as a string. Changing the library to match the spec makes it a bit more annoying to do something like 'get a thread -> call an API on that thread', since this will now require converting the returned string to an int.
Given that this 'problem' is present in the API spec, I'm inclined to match the spec, but want to double check that this is the desired behavior of this project.
[0] From https://docs.github.com/en/rest/activity/notifications?apiVersion=2022-11-28#get-a-thread
{
"title": "Thread",
"description": "Thread",
"type": "object",
"properties": {
"id": {
"type": "string"
},
...
See #3265 (comment) for context.
Happy to take the work to fix this, filing an issue for tracking.
Question about ergonomics, though... the current library (as well as the GitHub API spec[0]) return the thread ID as a string. Changing the library to match the spec makes it a bit more annoying to do something like 'get a thread -> call an API on that thread', since this will now require converting the returned string to an int.
Given that this 'problem' is present in the API spec, I'm inclined to match the spec, but want to double check that this is the desired behavior of this project.
[0] From https://docs.github.com/en/rest/activity/notifications?apiVersion=2022-11-28#get-a-thread
{ "title": "Thread", "description": "Thread", "type": "object", "properties": { "id": { "type": "string" }, ...