Home > potd > POTD: GitHub API for Java

POTD: GitHub API for Java

April 18th, 2010

My project of the day (or “POTD”) is GitHub API for Java — a library for accessing GitHub programmatically.

As the Hudson community is embracing plugins developed in Git more and more, I needed to interact with GitHub as a part of the community infrastructure automation. I did a quick Google search to locate existing implementations, but unfortunately I couldn’t find anything good. So I decided to just write my own. Thanks to a reasonable API design of GitHub and a good documentation, it was very easy to do so. The trick is to use the right library, which handles most of the JSON/Java databinding.

The library so far only covers the part of the GitHub API that I care about, which is a small subset of the entire GitHub API. But hopefully this library is easy enough to extend so that other people can add the remaining APIs. The source code is available in GitHub.


  1. April 19th, 2010 at 00:06 | #1
  2. April 19th, 2010 at 08:21 | #2

    It looks like java.net Maven repository sync hasn’t kicked in yet. But it should be there soon.

  3. April 22nd, 2010 at 16:07 | #3

    How is different from the previous GitHub plug-in for Hudson ?

  4. April 22nd, 2010 at 21:38 | #4

    This is not a plugin for Hudson. It’s just a Java library to interface with GitHub.

  5. HeadLess
    April 23rd, 2010 at 03:47 | #5

    Do You tinker in Hudson Deploy plugin still?
    There’s a lot cool stuff in released Cargo..
    Also: deploy to remote Glassfish would be cool :)

  6. April 23rd, 2010 at 15:43 | #6

    Haven’t touched it lately, but I agree that there’s a lot more that can be done in that space.

  1. April 19th, 2010 at 10:37 | #1