Giter VIP home page Giter VIP logo

err-gitbot's Introduction

err-gitbot plugin a that watchs your git repositories.

For more information about err you can find it here: https://github.com/errbotio/errbot

Installation

dependencies

pip install gitpython

If you have the admin rights on an err chatbot simply use:

!repos install errbotio/err-gitbot

in order to install the plugin. Then !help to see the available commands and their explanation.

Some tips here :

To track all the branches of a repo just say with the repo url:

!git follow git://github.com/opdenkamp/xbmc.git

Err will extract smartly the name "xbmc" from it.

if you want to follow a specific branches instead of everything just:

!git follow git://github.com/opdenkamp/xbmc.git Eden-pvr Dharma

If you redo a follow this time simply with the symbolic name you can add new branches to track:

!git follow xbmc staging

Or you can remove a specific branch with !git unfollow:

!git unfollow xbmc staging

Or the repo alltogether

!git unfollow xbmc 

If at any point you are lost, you can ask the list of currently followed repos / branches with:

!git following

Note : If you have several chatrooms defined in your err config, it will only "spam" the first one.

err-gitbot's People

Contributors

asfaltboy avatar boidolr avatar egon0 avatar gbin avatar tooangel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

err-gitbot's Issues

Doesn't install

!repos install err-gitbot

Results in:

Some plugins are generating errors:
You need those dependencies for data/plugins/err-gitbot:
Plugin reload done.

And log messages:

ERROR:yapsy:Unable to import plugin: /home/gladed/err/data/plugins/err-gitbot/gitBot
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/yapsy/PluginManager.py", line 488, in loadPlugins
    candidate_module = imp.load_module(plugin_module_name,plugin_file,candidate_filepath+".py",("py","r",imp.PY_SOURCE))
  File "/home/gladed/err/data/plugins/err-gitbot/gitBot.py", line 4, in <module>
    from gittools import clone, get_heads_revisions, fetch_all_heads, history_since_rev, git_log, remove_repo
  File "data/plugins/err-gitbot/gittools.py", line 3, in <module>
    from errbot.errBot import PLUGIN_DIR
ImportError: cannot import name PLUGIN_DIR
INFO:root:Activating all the plugins...
INFO:root:Activate plugin: Webserver
INFO:root:Activating Webserver with min_err_version = 2.1.0 and max_version = 2.1.0
INFO:root:Webserver is not configured. Forbid activation

as I run `/git follow git://github.com/opdenkamp/xbmc.git Eden-pvr Dharma`

it fails:

 An error happened while processing a message ("/git follow git://github.com/yandex/rep.git"): Traceback (most recent call last):
  File "/Users/anaderi/miniconda/envs/aot-py3/lib/python3.5/site-packages/errbot/core.py", line 456, in _execute_and_send
    reply = method(mess, match) if match else method(mess, args)
  File "/Users/anaderi/git/AOT-errbot/data/plugins/errbotio/err-gitbot/gitBot.py", line 142, in git_follow
    installed_plugin_repos = self.get_installed_plugin_repos()
AttributeError: 'GitBot' object has no attribute 'get_installed_plugin_repos'
"
Traceback (most recent call last):
  File "/Users/anaderi/miniconda/envs/aot-py3/lib/python3.5/site-packages/errbot/core.py", line 456, in _execute_and_send
    reply = method(mess, match) if match else method(mess, args)
  File "/Users/anaderi/git/AOT-errbot/data/plugins/errbotio/err-gitbot/gitBot.py", line 142, in git_follow
    installed_plugin_repos = self.get_installed_plugin_repos()
AttributeError: 'GitBot' object has no attribute 'get_installed_plugin_repos'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.