logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

App::KGB::API -- KGB bot API documentation

Author

       Damyan Ivanov dmn@debian.org

Name

       App::KGB::API -- KGB bot API documentation

See Also

kgb-client(1), kgb-bot(1)

Version 4 (Json)

General,authentication
       Version 4 uses JSON-RPC as described in <http://http://json-rpc.org/wiki/specification> with one
       extension. Since all requests are authenticated, two HTTP headers need to be included:

       X-KGB-Project: project-name
       X-KGB-Auth: hash

       The  project  name  is  the  string  identifying  the  project  on  the  server side, and the hash is the
       hexadecimal representation of the SHA-1 hash calculated over the following data:

       Project password
           This is the shared password known to the client and the server.

       project-name
       request-text
           This is the JSON-encoded request text. The same that is sent in the HTTP body.

   Commitnotification
       Request is a JSON-RPC call to a method called commit_v4 with a single argument, which is a map  with  the
       following possible keys:

       repo_id project-name
       rev_prefix revision-prefix
           Usually "r" for Subversion commits

       commit_id commitid
           Subversion revision, Git hash or just empty (for CVS).

       changes changeslist
           A  list  of changes, encoded as strings. It is simple file name prepended with "(A)" for added, "(M)"
           (or nothing) for modified and "(D)" for deleted. See App::KGB::Change.

       commit_log logmessage
       author user/name
       branch branchname
       module modulename
       extra additionalinformation
           A map with extra information. Currently "web_link" is the only member that the server recognises.

   Plainmessagerelay
       The message relay calls are to the relay_message method,  with  the  only  argument  the  message  to  be
       relayed.

See Also