Difference between revisions of "Begiak's git plugin"

From Apertium
Jump to navigation Jump to search
(Document Begiak's git plugin)
 
m (Add reference to modules/svnpoller.py)
Line 38: Line 38:
begiak: info <repo> <rev> OR
begiak: info <repo> <rev> OR
begiak, info <repo> <rev>
begiak, info <repo> <rev>
will print the commit report. Note that this command does not try to handle SVN
will print the commit report. Note that this module does not try to handle SVN
repositories and other repositories it does not monitor.
repositories (they are handled by [https://github.com/goavki/phenny/blob/master/modules/svnpoller.py modules/svnpoller.py]) and other repositories it does not monitor.

Revision as of 14:36, 31 December 2014

Begiak has a git plugin that is a post-receive hooks module for the sites it receives commit updates from. The plugin can also provide information about the most recent commits for each repository, and information about individual commits for monitored repositories. The sources for the plugin are in modules/git.py.


Post-receive Hook

A post-receive hook is a script or bot which performs certain actions on receiving updates about commits from sites like GitHub and bitbucket. In Begiak's case, Begiak prints out information about commits as they come in to the IRC channels it is present on and notifies administrators.

Begiak receives updates from GitHub, Google Code, and Bitbucket. The hook module is started automatically when Begiak is started and connects to an IRC network. All users can check the status of the hook server with

   .gitserver status

and administrators can manually start and stop the server with

   .gitserver start
   .gitserver stop

The command `stopserver' is the same as `.gitserver stop'.


Recent Commits

Begiak can get information for the most recent commits for the repositories it monitors. The command

   begiak: recent OR
   begiak, recent

will print the commit reports.


Commit Information

Begiak can get commit information for a specified repository and revision. The command

   begiak: info <repo> <rev> OR
   begiak, info <repo> <rev>

will print the commit report. Note that this module does not try to handle SVN repositories (they are handled by modules/svnpoller.py) and other repositories it does not monitor.