Search code examples
gitjgitgit-webhooks

Does JGit support Webhooks?


I am experimenting with Webhooks for GitHub. As I understand, we can register URLs for Webhooks in Github settings. But I wanted to do this programmatically. I am using JGit for API driven Git management. I couldn't see any obvious support for Webhooks in JGit.

Does JGit support Webhook register, unregister, edit etc. APIs?


Solution

  • JGit does not support Webhooks. JGit is a Git implementation in Java. Webhooks are a feature of GitHub, a hosting service for Git repositories.

    The GitHub REST API allows to manage Webhooks, the documentation is here: https://developer.github.com/v3/repos/hooks/

    A list of language bindings for the GitHub REST API can be found here: https://developer.github.com/v3/libraries/