Skip to content

πŸ”Ž A Slackbot that searches a Gitlab/Github wiki

Notifications You must be signed in to change notification settings

erwanp/slack-wiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

slack-wiki

A simple pluggin for my Lab assistant

At my Lab we extensively use a Gitlab wiki to share procedures and details about equipments. However, looking up an information isn't always straightforward.

slack-wiki makes it easy: it is a Bot in our Slack channel. Just ask him whatever and it will look up the Wiki and return results

slack-wiki is built with Botkit. It requires the Gitlab/Github wiki to be cloned locally, then performs a git grep whenever an user asks him something. The local wiki is updated automatically on each new request. Matches are highlighted parsing the git grep results and looking for the appropriate color codes.

Requirements

  • Assuming you already have node.js installed, get Botkit:
npm install --save botkit
git clone path/to/repository.wiki.git local/path

You should be authentified to pull from the wiki server (to update the local wiki regularly)

  • Set your wiki local/path as an environment variable $WIKI_LOCAL_PATH, and your Slack token as an environment variable $WIKI_TOKEN

  • Run slack-wiki.sh

Example

example

About

πŸ”Ž A Slackbot that searches a Gitlab/Github wiki

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published