hub4j / github-api

Java API for GitHub
https://github-api.kohsuke.org/
MIT License
1.12k stars 715 forks source link

GHHook id is long, but webhook operations require int #1843

Open karlhendrikindrikson opened 2 months ago

karlhendrikindrikson commented 2 months ago

Hi.

When creating user and organization specific webhooks, the webhook id type is long, but find and delete operations accept an integer. This seems like a minor problem, since webhook ids start incrementing from 1, but isn't this a type safety problem in the long run?