2013-07-29 23:03:31 +02:00
{% extends "zerver/portico.html" %}
2013-02-06 20:25:04 +01:00
{# API information page #}
2015-09-24 01:35:21 +02:00
{% block os_announcement %}
2016-07-19 06:49:47 +02:00
{% if show_oss_announcement %}
2015-09-24 01:35:21 +02:00
< div class = "os-headline-container" >
< img src = "/static/images/logo/zballoon.png" class = "os-illustration" alt = "Zulip balloon" / >
< div class = "main-headline-text" >
< span class = "tagline os-tagline" >
Zulip has been released as open source software!
< / span >
< span class = "footnote os-footnote" >
Read the < a href = "https://blogs.dropbox.com/tech/2015/09/open-sourcing-zulip-a-dropbox-hack-week-project" target = "_blank" > announcement< / a > or go to < a href = "https://www.zulip.org" target = "_blank" > the Zulip open source project website< / a > .
< / span >
< / div >
< / div >
{% endif %}
{% endblock %}
2013-02-06 20:25:04 +01:00
{% block portico_content %}
2013-10-21 21:19:31 +02:00
< div class = "portico-page-header" > < a href = "#" > < i class = "icon-vector-gears portico-page-header-icon" > < / i > Integrations< / a > < / div >
2016-07-14 05:47:34 +02:00
< div id = "integration-main-text" >
< p class = "portico-large-text" > With Zulip integrations, your team
can stay up-to-date on code changes, issue tickets, build system
results, tweets about your project, and much more.< / p >
< p > Many of these integrations require creating a Zulip bot. You
2016-08-14 03:32:11 +02:00
can do so on your {{ settings_html|safe }}. Be
2016-07-14 05:47:34 +02:00
sure to note its username and API key.< / p >
< p > If an integration you want isn't available yet, you
can < a href = "http://zulip.readthedocs.io/en/latest/integration-guide.html" > contribute
an integration< / a >
or < a href = "https://github.com/zulip/zulip/issues/new" > open an
issue on GitHub< / a > and tag it with the "integrations" label
(so you can get notified when that integration becomes
available).< / p >
< / div >
2013-10-30 00:11:56 +01:00
2013-10-21 21:19:31 +02:00
< div id = "integration-instruction-block" class = "integration-instruction-block" >
< a href = "#" id = "integration-list-link" > < i class = "icon-vector-circle-arrow-left" > < / i > Back to list< / a >
< / div >
< div class = "integration-lozenges" >
2016-07-29 15:06:41 +02:00
{% for integration in integrations_dict.values() %}
{% if integration.is_enabled() %}
< div class = "integration-lozenge integration-{{ integration.name }}" >
< a class = "integration-link integration-{{ integration.name }}" href = "#{{ integration.name }}" >
< img class = "integration-logo" src = "/{{ integration.logo }}" alt = "{{ integration.display_name }} logo" / >
{% if integration.secondary_line_text %}
< span class = "integration-label" style = "padding-top: 0px; padding-bottom: 0px;" > {{ integration.display_name }}< / span >
< span class = "integration-label-secondary" > {{ integration.secondary_line_text }}< / span >
{% else %}
< span class = "integration-label" > {{ integration.display_name}}< / span >
{% endif %}
< / a >
< / div >
{% endif %}
{% endfor %}
2013-10-21 21:19:31 +02:00
< / div >
2016-02-23 21:04:12 +01:00
< div class = "portico-page-header extra" id = "hubot-integrations" > < a href = "#" > < i class = "icon-vector-gears portico-page-header-icon" > < / i > Integrations available via Hubot< / a > < / div >
< p class = "portico-large-text extra" > The official < a class = "integration-link integration-hubot" href = "#hubot" > < span class = "integration-label" > Hubot< / span > < / a >
integration provides an extension point for additional Zulip integrations. < / p > < p class = "portico-large-text extra" > A non-comprehensive list of integrations available through
< a class = "integration-link integration-hubot" href = "#hubot" > < span class = "integration-label" > Hubot< / span > < / a > follows below:< / p >
< div class = "integration-lozenges" >
2016-11-23 18:58:59 +01:00
{% for integration in hubot_lozenges_dict.values() %}
< div class = "integration-lozenge integration-{{ integration.name }}" >
< a class = "integration-link integration-{{ integration.name }}" href = "{{ integration.git_url }}" >
< img class = "integration-logo" src = "/{{ integration.logo }}" alt = "{{ integration.logo_alt }} logo" / >
< span class = "integration-label" > {{ integration.display_name}}< / span >
< / a >
< / div >
{% endfor %}
2016-02-23 21:04:12 +01:00
< / div >
2013-10-21 21:19:31 +02:00
< div id = "integration-instructions-group" >
2016-11-26 00:25:05 +01:00
{% for integration in integrations_dict.values() %}
{% if integration.is_enabled() %}
{% if integration.doc %}
< div id = {{ integration . name } } class = "integration-instructions" >
{% include integration.doc %}
< / div >
{% endif %}
{% endif %}
{% endfor %}
2016-12-14 19:50:57 +01:00
2013-11-18 22:21:31 +01:00
< div id = "asana" class = "integration-instructions" >
< p > Get Zulip notifications for your Asana tasks!< / p >
< p > First, create the stream you'd like to use for Asana notifications, and
subscribe all interested parties to this stream. We recommend the
name < code > asana< / code > .< / p >
2016-08-14 03:32:11 +02:00
< p > Next, on your {{ settings_html|safe }}, create an Asana bot. Please note the bot name and API key.< / p >
2013-11-18 22:21:31 +01:00
< p > Then:< / p >
< ol >
< li >
< p > Download and install our < a href = "/api" > Python bindings< / a > on the
server where the Asana mirroring script will live. The Asana
integration will be installed to a location
like < code > /usr/local/share/zulip/integrations/asana/< / code > .< / p >
< / li >
< li >
< p > Visit your < a href = "https://app.asana.com/-/account_api" > Asana
account settings page< / a > and retrieve your API key.< / p >
2013-12-04 22:01:10 +01:00
< p > Edit < code > asana/zulip_asana_config.py< / code > and
change the following lines to configure the integration:< / p >
< div class = "codehilite" >
< pre >
< span class = "n" > ASANA_API_KEY< / span > < span class = "o" > =< / span > < span class = "s" > 0123456789abcdef0123456789abcdef< / span >
< span class = "n" > ZULIP_USER< / span > < span class = "o" > =< / span > < span class = "s" > "asana-bot@example.com"< / span >
< span class = "n" > ZULIP_API_KEY< / span > < span class = "o" > =< / span > < span class = "s" > "0123456789abcdef0123456789abcdef"< / span >
2016-08-14 03:32:11 +02:00
{% if api_site_required %}< span class = "n" > ZULIP_SITE< / span > < span class = "o" > =< / span > < span class = "s" > "{{ external_api_uri_subdomain }}"< / span > {% endif %}< / pre >
2013-12-04 22:01:10 +01:00
< / div >
2013-11-18 22:21:31 +01:00
< p > If you are using a stream other than < code > asana< / code > ,
set < code > ZULIP_STREAM_NAME< / code > to the chosen stream name.< / p >
< / li >
< li >
2016-08-14 08:30:39 +02:00
< p > Test your configuration by running the mirror with
2016-11-22 01:44:16 +01:00
< code > asana/zulip_asana_mirror< / code > . It will print
2016-08-14 08:30:39 +02:00
some informational messages and process any recently created
or completed tasks.< / p >
2013-11-18 22:21:31 +01:00
< / li >
< li >
< p > This mirror is intended to be a long-running processing and should be
hooked into your infrastructure for keeping services running (for
example, auto-restarting through < code > supervisord< / code > ).< / p >
< p > Please
2015-09-29 06:17:08 +02:00
contact < a href = "mailto:zulip-devel@googlegroups.com?subject=Asana%20integration%20question" > zulip-devel@googlegroups.com< / a >
2013-11-18 22:21:31 +01:00
if you'd like assistance with maintaining this integration.
< / p >
< / li >
< / ol >
< p > < b > Congratulations! You're done!< / b > < br / > When team members create and
complete tasks in Asana, you'll get a Zulip notification that looks like
this:< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/asana/001.png" / >
2013-11-18 22:21:31 +01:00
< / div >
< div id = "basecamp" class = "integration-instructions" >
2013-08-30 21:55:36 +02:00
< p > First, create the stream you'd like to use for Basecamp notifications,
and subscribe all interested parties to this stream. We recommend the
name < code > basecamp< / code > .< / p >
< p > Next, download and install our < a href = "/api" > Python
bindings and example scripts< / a > on the computer you'd like to run this mirroring script from.< / p >
< p > You will need your Basecamp account ID. You can find it as a sequence of numbers in the URL when you log in:< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/basecamp/001.png" / >
2013-08-30 21:55:36 +02:00
< p > Edit the Basecamp and Zulip credentials in < code > integrations/basecamp/zulip_basecamp_config.py< / code > using
2013-11-18 22:57:55 +01:00
your favorite editor:< / p >
2013-08-30 21:55:36 +02:00
< div class = "codehilite" >
< pre > < span class = "n" > BASECAMP_ACCOUNT_ID< / span > < span class = "o" > =< / span > < span class = "s" > "1234567"< / span >
< span class = "n" > BASECAMP_USERNAME< / span > < span class = "o" > =< / span > < span class = "s" > "foo@example.com"< / span >
< span class = "n" > BASECAMP_PASSWORD< / span > < span class = "o" > =< / span > < span class = "s" > "p455w0rd"< / span >
< span class = "n" > ZULIP_USER< / span > < span class = "o" > =< / span > < span class = "s" > "basecamp-bot@example.com"< / span >
2013-12-04 21:58:45 +01:00
< span class = "n" > ZULIP_API_KEY< / span > < span class = "o" > =< / span > < span class = "s" > "0123456789abcdef0123456789abcdef"< / span >
2016-08-14 03:32:11 +02:00
{% if api_site_required %}< span class = "n" > ZULIP_SITE< / span > < span class = "o" > =< / span > < span class = "s" > "{{ external_api_uri_subdomain }}"< / span > {% endif %}< / pre >
2013-08-30 21:55:36 +02:00
< / div >
< p > Before your first run of the script, you may optionally choose to
configure it to mirror some number of hours of Basecamp activity:< / p >
< div class = "codehilite" >
< pre > < span class = "n" > BASECAMP_INITIAL_HISTORY_HOURS< / span > < span class = "o" > =< / span > < span class = "s" > 10< / span > < / pre >
< / div >
< p > Now, simply run the < code > api/integrations/basecamp/zulip_basecamp_mirror< / code > script.
If needed, this script may be restarted, and it will automatically resume from when
it was last running.< / p >
< p > < b > Congratulations! You're done!< / b > < br / > Whenever you create a new project,
calendar event, comment, message, or more, you'll get a notification in your selected stream
2013-11-18 22:57:55 +01:00
with the project or calendar as the topic.< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/basecamp/002.png" / >
2013-08-30 21:55:36 +02:00
< / div >
2013-10-21 21:19:31 +02:00
< div id = "capistrano" class = "integration-instructions" >
2013-03-19 21:22:50 +01:00
< p > First, download and install our < a href = "/api" > Python
bindings and example scripts< / a > on your Capistrano server.
2013-08-07 17:52:53 +02:00
Once you've done that, you'll use the < code > zulip-send< / code >
2013-03-19 21:22:50 +01:00
utility to notify you when certain events happen.< / p >
2013-07-10 22:31:14 +02:00
< p > Here's some example code for sending a Zulip notification
2013-03-19 21:22:50 +01:00
after a deployment has completed:< / p >
2013-03-26 18:12:00 +01:00
< div class = "codehilite" > < pre > < span class = "n" > after< / span > < span class = "s1" > 'deploy'< / span > < span class = "p" > ,< / span > < span class = "s1" > 'notify:humbug'< / span >
2013-03-19 21:22:50 +01:00
< span class = "n" > namespace< / span > < span class = "ss" > :notify< / span > < span class = "k" > do< / span >
2013-07-10 22:31:14 +02:00
< span class = "n" > desc< / span > < span class = "s2" > "Post a message to Zulip that we've deployed"< / span >
2013-03-19 21:22:50 +01:00
< span class = "n" > task< / span > < span class = "ss" > :humbug< / span > < span class = "k" > do< / span >
2013-07-10 22:31:14 +02:00
< span class = "c1" > # this will post to Zulip as the user defined in
2013-08-07 17:36:46 +02:00
# ~/.zuliprc if you omit --user and --api-key< / span >
2013-08-07 17:52:53 +02:00
< span class = "n" > run_locally< / span > < span class = "s2" > "echo ':beers: I just deployed to < / span > < span class = "si" > #{< / span > < span class = "n" > stage< / span > < span class = "si" > }< / span > < span class = "s2" > ! :beers:' | zulip-send \
2013-05-29 17:55:59 +02:00
--user capistrano-bot@example.com --api-key a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5 \
2016-08-14 03:32:11 +02:00
{% if api_site_required %} --site={{ external_api_uri_subdomain }} \
2013-12-04 21:58:45 +01:00
{% endif %} --stream commits --subject deployments || true"< / span >
2013-03-19 21:22:50 +01:00
< span class = "k" > end< / span >
< span class = "k" > end< / span >
< / pre > < / div >
< p > Some notes:< / p >
< ul >
2013-08-07 17:36:46 +02:00
< li > If you prefer not to use < code > --user< / code > and < code > --api-key< / code > above, you can fill out < code > ~/.zuliprc< / code > on your Capistrano
2013-05-29 17:55:59 +02:00
machine. For instructions on how to write that file, see < a href = "/api" > the API page< / a > .< / li >
2013-03-26 18:12:00 +01:00
< li > You may need to change the < code > deploy< / code > above to
another step of your deployment process, if you'd like the
notification to fire at a different time.< / li >
2013-03-19 21:22:50 +01:00
< / ul >
2013-06-19 23:46:11 +02:00
< em > < / em >
2013-03-19 21:22:50 +01:00
< p > < b > Congratulations! You're done!< / b > < br / > Whenever you do a
deployment, you'll get an automated notification that looks like
this:< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/capistrano/001.png" / >
2013-03-19 21:22:50 +01:00
< p > < small > Thanks to Wes of TurboVote for < a href = "https://gist.github.com/cap10morgan/5100822" > submitting this integration< / a > !< / small > < / p >
< / div >
2013-10-21 21:19:31 +02:00
< div id = "codebase" class = "integration-instructions" >
2013-10-01 21:38:07 +02:00
< p > First, create the streams you'd like to use for Codebase notifications. There will be two types of
messages: commit-related updates and issue-related updates. After creating these streams (we suggest naming
them < code > codebase commits< / code > and < code > codebase issues< / code > ), make sure to subscribe all interested parties.< / p >
< p > Next, download and install our < a href = "/api" > Python
bindings and example scripts< / a > on the computer you'd like to run this mirroring script from.< / p >
< p > You will need your Codebase API Username. You can find it in the settings page of your account, under
< code > API Credentials< / code > .< / p >
< p > Edit the Codebase and Zulip credentials in < code > integrations/codebase/zulip_codebase_config.py< / code > using
your favorite editor:< / p >
< div class = "codehilite" >
< pre > < span class = "n" > CODEBASE_API_USERNAME< / span > < span class = "o" > =< / span > < span class = "s" > "zulip-inc/leo-franchi-15"< / span >
< span class = "n" > CODEBASE_API_KEY< / span > < span class = "o" > =< / span > < span class = "s" > 0123456789abcdef0123456789abcdef< / span >
< span class = "n" > ZULIP_USER< / span > < span class = "o" > =< / span > < span class = "s" > "codebase-bot@example.com"< / span >
2013-12-04 21:58:45 +01:00
< span class = "n" > ZULIP_API_KEY< / span > < span class = "o" > =< / span > < span class = "s" > "0123456789abcdef0123456789abcdef"< / span >
2016-08-14 03:32:11 +02:00
{% if api_site_required %}< span class = "n" > ZULIP_SITE< / span > < span class = "o" > =< / span > < span class = "s" > "{{ external_api_uri_subdomain }}"< / span > {% endif %}< / pre >
2013-10-01 21:38:07 +02:00
< / div >
< p > Before your first run of the script, you may optionally choose to
configure it to mirror some number of hours of prior Codebase activity:< / p >
< div class = "codehilite" >
< pre > < span class = "n" > CODEBASE_INITIAL_HISTORY_HOURS< / span > < span class = "o" > =< / span > < span class = "s" > 10< / span > < / pre >
< / div >
< p > Now, simply run the < code > api/integrations/codebase/zulip_codebase_mirror< / code > script.
If needed, this script may be restarted, and it will automatically resume from when
it was last running.< / p >
2013-08-29 20:03:59 +02:00
2013-10-01 21:38:07 +02:00
< p > < b > Congratulations! You're done!< / b > < br / > Whenever you create a new project,
commit, issue, deployment, or more, you'll get notifications in your selected streams
with the associated information.< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/codebase/001.png" / >
2013-10-01 21:38:07 +02:00
< / div >
2013-10-21 21:19:31 +02:00
2013-12-04 22:35:38 +01:00
{% if email_integration_enabled %}
2013-10-21 21:19:31 +02:00
< div id = "email" class = "integration-instructions" >
2013-08-29 20:03:59 +02:00
< p > You can send emails to Zulip! This is useful:< / p >
< ul >
< li > If you use a service that can send emails but does not easily lend
itself to more direct integration< / li >
< li > If you have an email that you want to discuss on Zulip< / li >
< li > As a structured, searchable, commentable archive for mailing list
traffic< / li >
< / ul >
< p > To send an email to a Zulip stream:< / p >
< ol >
2016-08-14 03:32:11 +02:00
< li > Visit your {{ subscriptions_html|safe }} and click on the stream row to expand it.< / li >
2013-08-29 20:03:59 +02:00
< li > Copy the stream email address
2013-12-04 22:37:49 +01:00
(e.g. < code > {{ email_gateway_example }}< / code > ). If the stream
2013-08-29 20:03:59 +02:00
name contains special characters, we've transformed the name so it is a
safe email recipient.< / li >
< li > Send an email (To, CC, and BCC all work) to the stream email
address. The email subject will become the stream topic, and the email
body will become the Zulip message content.< / li >
< / ol >
2013-09-04 18:24:49 +02:00
< p > Please note that it may take up to one minute for the message to show up
2013-08-29 20:03:59 +02:00
in Zulip.< / p >
< / div >
2013-12-04 22:35:38 +01:00
{% endif %}
2013-08-29 20:03:59 +02:00
2013-10-21 21:19:31 +02:00
< div id = "git" class = "integration-instructions" >
2013-02-15 23:01:55 +01:00
< p > First, download and install our < a href = "/api" > Python
bindings and example scripts< / a > on your Git server.< / p >
2013-08-26 22:58:16 +02:00
< p > Next, create the stream you'd like to use for Git notifications, and
subscribe all interested parties to this stream. The integration will use
the default stream < code > commits< / code > if no stream is supplied in the
hook; you still need to create the stream even if you are using this
default.< / p >
2013-08-07 17:55:22 +02:00
< p > Next, open < code > integrations/git/zulip_git_config.py< / code >
2013-02-15 23:01:55 +01:00
in your favorite editor, and change the following lines to
specify the email address and API key for your Git bot:< / p >
2013-08-07 18:26:11 +02:00
< div class = "codehilite" > < pre > < span class = "n" > ZULIP_USER< / span > < span class = "o" > =< / span > < span class = "s" > "git-bot@example.com"< / span >
2013-12-04 21:58:45 +01:00
< span class = "n" > ZULIP_API_KEY< / span > < span class = "o" > =< / span > < span class = "s" > "0123456789abcdef0123456789abcdef"< / span >
2016-08-14 03:32:11 +02:00
{% if api_site_required %}< span class = "n" > ZULIP_SITE< / span > < span class = "o" > =< / span > < span class = "s" > "{{ external_api_uri_subdomain }}"< / span > {% endif %}< / pre > < / div >
2013-02-15 23:01:55 +01:00
< p > You can also specify which pushes will result in
notifications and to what stream the notifications will be sent
by modifying the < code > commit_notice_destination< / code > function
2013-08-07 17:55:22 +02:00
in < code > zulip_git_config.py< / code > . By default, pushes to
2013-02-15 23:01:55 +01:00
the < code > master< / code > and < code > test-post-receive< / code >
branches will result in a notification to
stream < code > commits< / code > .< / p >
2013-08-07 17:55:22 +02:00
< p > Save < code > integrations/git/zulip_git_config.py< / code > to
2013-02-15 23:01:55 +01:00
the < code > .git/hooks< / code > directory of your git
repository.< / p >
< p > Symlink
2013-08-07 18:32:51 +02:00
< code > /usr/local/share/zulip/integrations/git/post-receive< / code >
2013-02-15 23:01:55 +01:00
into the < code > .git/hooks< / code > directory of your git repository.< / p >
< p > < b > Congratulations! You're done!< / b > < br / > Whenever you make
a push to the < code > master< / code > branch of your git repository
2013-07-10 22:31:14 +02:00
(or whatever you configured above), the Zulip git plugin will
2013-02-15 23:01:55 +01:00
send an automated notification that looks like this:< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/git/001.png" / >
2013-02-15 23:01:55 +01:00
< p > < b > Testing< / b > < br / > You can test the plugin without changing
your < code > master< / code > branch by pushing to
the < code > test-post-receive< / code > branch.< / p >
< / div >
2013-10-21 21:19:31 +02:00
2016-12-16 02:38:44 +01:00
< div id = "google-calendar" class = "integration-instructions" >
< p >
Get Google Calendar reminders in Zulip! This is a great way to see your reminders directly in
your Zulip feed.
< / p >
< p >
First download and install our < a href = "/api" > Python Bindings and example scripts< / a > .
This bot should be set up on a trusted machine, because your API key is visible to local users
through the command line or config file.
< / p >
< p >
Next, follow the instructions for < b > Step 1< / b > at < a href = "https://developers.google.com/
google-apps/calendar/quickstart/python">this link< / a > to get a < code > client_secret< / code >
file. Save this file to your < code > /~< / code > directory instead of your working directory.
< / p >
< p >
Next, install the latest Google API Client for Python by following the instructions on
the < a href = "https://developers.google.com/api-client-library/python/start/installation" >
Google Website< / a > .
< / p >
< p >
Then go to your < b > Zulip Settings< / b > by clicking on the cog in the top right corner,
and then clicking on < b > Settings< / b > .
< / p >
< p >
2017-01-17 02:26:22 +01:00
Click on the tab that's labeled < b > Your bots< / b > and click on < b > Show/change your API
2016-12-16 02:38:44 +01:00
key< / b > . Enter your password if prompted, and download the < code > .zuliprc< / code > file. Save
this file to your < code > ~/< / code > folder.
< / p >
< p > < img class = "screenshot" src = "/static/images/integrations/google/calendar/001.png" / > < / p >
< p >
Run the < code > get-google-credentials< / code > with this command:
< pre > python /usr/local/share/zulip/integrations/google/get-google-credentials< / pre >
It should open up a browser and ask you for certain permissions. Give Zulip access, and move
on to the next step. If it doesn't open a browser, follow the instructions in the terminal
window.
< / p >
< p >
Now, all that's left to do is to run the < code > gcal-bot< / code > script, in the same
directory as the < code > get-google-credentials< / code > script, with the necessary paramaters:
< pre > python /usr/local/share/zulip/integrations/google/gcal-bot --user foo@zulip.com< / pre >
< / p >
< p >
The < code > --user< / code > flag specifies the user to send the reminder to. < br / > There are
two optional flags that you can specify when running this script:
< / p >
< ol >
< li >
< code > --calendar< / code > : This flag specifies the calendar to watch from the user's
Google Account. By default, this flag is set to a user's primary or default calendar.
To specify a calendar, you need the calendar ID which can be obtained by going to Google
Calendar and clicking on the wedge next to the calendar's name. Click on settings in
< b > Calendar settings< / b > in the drop down, and look for the < b > Calendar Address< / b >
section. Copy the < b > Calendar ID< / b > from the right side of the page and use that as the
value for this flag.
< p > < img class = "screenshot" src = "/static/images/integrations/google/calendar/002.png" / > < / p >
< / li >
< li >
< code > --interval< / code > : This flag specifies the interval of time - in minutes - between
receiving the reminder, and the actual event. For example, an interval of 30 minutes
2017-01-12 05:27:56 +01:00
would mean that you would receive a reminder for an event 30 minutes before it is
2016-12-16 02:38:44 +01:00
scheduled to occur.
< / li >
< / ol >
< p >
Don't close the terminal window with the bot running. You will only get reminders if the
bot is still running.< / p >
< p >
< b > Congratulations! You're done!< / b > < br / > You will get a Zulip private message, whenever you
have a calendar event scheduled, that looks like this:
< img class = "screenshot" src = "/static/images/integrations/google/calendar/003.png" / >
< / p >
< / div >
2013-10-21 21:19:31 +02:00
< div id = "hubot" class = "integration-instructions" >
2013-10-22 16:49:48 +02:00
< ol >
2016-05-11 02:54:28 +02:00
< li > < p > Follow the "Getting Started with Hubot" section of the < a href = "https://hubot.github.com/docs/#getting-started-with-hubot" > Hubot README< / a > to create your Hubot. You'll have a new directory from which < code > bin/hubot< / code > starts a vanilla Hubot instance with the shell backend.< / p > < / li >
2013-10-22 16:49:48 +02:00
< li > In your Hubot's directory, install the Zulip adapter. Run:
< pre > < code > npm install --save hubot-zulip< / code > < / pre >
< / li >
2016-08-14 03:32:11 +02:00
< li > < p > On your {{ settings_html|safe }}, create a bot account. Note its username, API key and full name; you will use them on the next step.< / p > < / li >
2013-10-22 16:49:48 +02:00
< li > To run Hubot locally, use:
2016-11-04 19:41:10 +01:00
< pre > < code > HUBOT_ZULIP_SITE={{ external_api_path_subdomain }} HUBOT_ZULIP_BOT=hubot-bot@example.com HUBOT_ZULIP_API_KEY=your_key bin/hubot --adapter zulip --name "myhubot"< / code > < / pre >
2013-10-22 16:49:48 +02:00
< / li >
< / ol >
< p > The bot account email address and API key are passed to Hubot via environment variables < code > HUBOT_ZULIP_BOT< / code > and < code > HUBOT_ZULIP_API_KEY< / code > . The < code > --name< / code > parameter must match the name you gave the bot on the settings page.< / p >
< p >
Hubot will automatically listen for commands on all public streams. You can also invite Hubot to invite-only streams.
< / p >
< p >
To test your Hubot installation, send it an @-notification with a basic command, for example < code > @Hubot pug me< / code > , which should produce a result like this:
< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/hubot/001.png" / >
2013-10-22 16:49:48 +02:00
< p > < a href = 'https://github.com/zulip/hubot-zulip' > Source code for the hubot-zulip adapter is available on GitHub< / a > .< / p >
2016-02-23 21:04:12 +01:00
< p > < a href = "#hubot-integrations" > Check out additional Zulip integrations available via Hubot< / a > < / p >
2013-10-22 16:49:48 +02:00
< / div >
2013-10-21 21:19:31 +02:00
< div id = "jenkins" class = "integration-instructions" >
2013-02-06 22:31:26 +01:00
2013-08-26 22:58:16 +02:00
< p > First, create the stream you'd like to use for Jenkins or Hudson
notifications, and subscribe all interested parties to this stream. We
recommend the name < code > jenkins< / code > or < code > hudson< / code > .< / p >
2014-01-01 22:33:01 +01:00
< p > < strong > Install the plugin< / strong > < br / > Install the "Zulip"
2016-08-14 08:46:19 +02:00
plugin by going to
< code > Manage Jenkins > Manage Plugins > Available< / code > ,
typing in "Zulip", and clicking "Install without
2016-11-08 16:46:16 +01:00
restart". (For historical reasons, the plugin might be named
"Humbug Plugin" in some places)< / p >
2013-02-10 00:35:06 +01:00
2014-01-01 22:33:01 +01:00
< img class = "screenshot" src = "/static/images/integrations/jenkins/001.png" / >
2013-02-10 00:35:06 +01:00
2013-04-18 21:56:41 +02:00
< p > < strong > Configure the plugin< / strong > < br / > Once the plugin
2016-08-14 08:46:19 +02:00
is installed, configure it by going to
< code > Manage Jenkins > Configure System< / code > . Scroll to the
section labeled "Zulip Notification Settings", and specify your
bot's email address, API key, the stream receiving the
notifications, and whether you'd like a notification on every
build, or only when the build fails (Smart Notification).< / p >
2013-02-10 00:35:06 +01:00
2014-01-01 22:33:01 +01:00
< p > (If you don't see this option, you may first need to restart
Jenkins.)< / p >
2013-12-17 17:37:28 +01:00
< img src = "/static/images/integrations/jenkins/002.png" / >
2013-02-10 00:35:06 +01:00
2013-04-18 21:56:41 +02:00
< p > < strong > Configure a post-build action for your project< / strong > < br / >
Once you've done that, it's time to configure one of your
2013-07-10 22:31:14 +02:00
projects to use the Zulip notification plugin. From your
2013-04-18 21:56:41 +02:00
project page, click "Configure" on the left sidebar. Scroll to
the bottom until you find the section labeled "Post-build
2014-01-01 22:33:01 +01:00
Actions". Click the dropdown and select "Zulip
2013-02-10 00:35:06 +01:00
Notification". It should look as below. Then click "Save".< / p >
2013-12-17 17:37:28 +01:00
< img src = "/static/images/integrations/jenkins/003.png" / >
2013-02-10 00:35:06 +01:00
< p > < b > Congratulations! You're done!< / b > < br / > When your builds
fail or succeed, you'll see a commit message like the following
2013-12-23 15:39:50 +01:00
with a topic that matches the project name (in this case
2014-01-01 22:33:01 +01:00
"SecretProject"):< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/jenkins/004.png" / >
2013-04-05 00:15:31 +02:00
2013-04-18 21:56:41 +02:00
< p > < b > Troubleshooting< / b > < br / >
< ul >
< li > Did you set up a post-build action for your project?< / li >
< li > Does the stream you picked (e.g. < code > jenkins< / code > ) already exist? If not, add yourself to it and try again.< / li >
2013-11-18 22:57:55 +01:00
< li > Are your access key and email address correct? Test them using < a href = "/api" > our curl API< / a > .< / li >
2015-09-29 06:17:08 +02:00
< li > Still stuck? Email < a href = "mailto:zulip-devel@googlegroups.com?subject=Jenkins" > zulip-devel@googlegroups.com< / a > .< / li >
2013-06-19 23:46:11 +02:00
< / ul >
2013-11-18 22:57:55 +01:00
< / p >
2013-02-10 00:35:06 +01:00
< / div >
2013-10-21 21:19:31 +02:00
< div id = "jira-plugin" class = "integration-instructions" >
2013-08-28 23:48:49 +02:00
< p > < em > If you are running JIRA version 5.2 or greater, or using the
hosted JIRA provided by Atlassian, we recommend using the < a
href="#jira">web-hook method< / a > above instead. This plugin
supports older versions of JIRA.< / em > < / p >
2013-08-26 22:58:16 +02:00
< p > First, create the stream you'd like to use for JIRA notifications, and
subscribe all interested parties to this stream. We recommend the
name < code > jira< / code > .< / p >
2013-03-29 22:57:10 +01:00
< h5 > Plugin mechanism< / h5 >
2013-08-26 22:58:16 +02:00
Next, download and install our < a href = "/api" > Python bindings and example scripts< / a > .
2013-03-26 17:04:12 +01:00
< p > < b > Plugin Installation< / b > < / p >
2013-03-29 22:57:10 +01:00
The JIRA integration plugin requires two JIRA plugins. Please install
2013-03-26 17:04:12 +01:00
the following plugins using the Universal Plugin Manager in your JIRA
2013-03-29 22:57:10 +01:00
installation:
2013-03-26 17:04:12 +01:00
< ul >
< li > < a href = "https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner" > Script Runner Plugin< / a > < / li >
< li > < a href = "https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugin.jirasslplugin" > SSL Plugin< / a > < / li >
< / ul >
< p > < b > SSL Setup< / b > < / p >
2013-07-10 22:31:14 +02:00
As Zulip is using a StartCOM SSL certificate that is not recognized by default in the Java installation shipped with JIRA,
2013-03-26 17:04:12 +01:00
you will need to tell JIRA about the certificate. Navigate to < code > Administration > System > Configure SSL< / code > and in
2016-08-14 03:32:11 +02:00
the < code > Import SSL Certificates< / code > field, enter < code > {{ external_api_uri_subdomain }}< / code > . After clicking < code > Save Certificates< / code > ,
2013-03-26 17:04:12 +01:00
follow the on-screen instructions and restart JIRA for it to recognize the proper certificates.
2013-07-10 22:31:14 +02:00
< p > < b > Zulip Integration< / b > < / p >
2013-03-26 23:12:31 +01:00
Copy the folder < code > integrations/jira/org/< / code > (from the tarball you downloaded above) to your JIRA < code > classes< / code > folder.
2013-06-19 23:46:11 +02:00
For self-contained JIRA installations, this will be < code > atlassian-jira/WEB-INF/classes/< / code > , but this may be different in your deployment.
2013-08-07 18:28:46 +02:00
Edit the constants at the top of < code > org/zulip/jira/ZulipListener.groovy< / code >
2013-03-26 17:04:12 +01:00
and fill them with the appropriate values:
2013-08-07 18:28:46 +02:00
< div class = "codehilite" > < pre > < span class = "n" > String< / span > < span class = "n" > zulipEmail< / span > < span class = "o" > =< / span > < span class = "s2" > "jira-notifications-bot@example.com"< / span >
< span class = "n" > String< / span > < span class = "n" > zulipAPIKey< / span > < span class = "o" > =< / span > < span class = "s2" > "0123456789abcdef0123456789abcdef"< / span >
< span class = "n" > String< / span > < span class = "n" > zulipStream< / span > < span class = "o" > =< / span > < span class = "s2" > "JIRA"< / span >
2013-03-26 17:04:12 +01:00
< span class = "n" > String< / span > < span class = "n" > issueBaseUrl< / span > < span class = "o" > =< / span > < span class = "s2" > "https://jira.COMPANY.com/browse/"< / span >
2013-06-19 23:46:11 +02:00
< / pre > < / div >
2013-03-26 17:04:12 +01:00
< p > In the Administrators page, navigate to < code > Plugins > Other > Script Listeners< / code > . In the < code > Add Listener< / code > section, click on
2013-07-10 22:31:14 +02:00
the < code > Custom Listener< / code > option. Select the events you wish the Zulip integration to fire for, and the projects you wish Zulip to be notified for.
2013-08-07 18:28:46 +02:00
In the < code > Name of groovy class< / code > field, enter < code > org.zulip.jira.ZulipListener< / code > .
2013-11-18 22:57:55 +01:00
< / p >
2013-03-26 17:04:12 +01:00
2013-07-10 22:31:14 +02:00
< p > Click < code > Add Listener< / code > , and JIRA will now notify your Zulip of changes to your issues!< / p >
2013-03-29 22:57:10 +01:00
< p > < b > Congratulations! You're done!< / b > < br / >
Updates from JIRA will be sent to the stream you've configured, as below.< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/jira/001.png" / >
2013-03-26 17:04:12 +01:00
< / div >
2013-10-28 15:41:21 +01:00
2016-04-09 05:29:45 +02:00
< div id = "mercurial" class = "integration-instructions" >
< p > Get Zulip notifications when you < code > hg push< / code > !< / p >
< p > First, create the stream you'd like to use for Mercurial notifications,
and subscribe all interested parties to this stream. We recommend the
name < code > commits< / code > .< / p >
2016-08-14 03:32:11 +02:00
< p > Next, on your {{ settings_html|safe }}, create a Mercurial bot.< / p >
2016-04-09 05:29:45 +02:00
< p > Then:< / p >
< ol >
< li >
< p > Download and install our < a href = "/api" > Python bindings< / a > on the
server where the master Mercurial repository lives.< / p >
< / li >
< li >
< p > Edit the < code > hg/.hgrc< / code > configuration file for this master
Mercurial repository and add the following sections, using the
credentials for your Mercurial bot and setting the appropriate path to
the integration hook if it installs in a different location on this
system:< / p >
< pre > [hooks]
changegroup = python:/usr/local/share/zulip/integrations/hg/zulip-changegroup.py:hook
[zulip]
email = "hg-bot@example.com"
api_key = "0123456789abcdefg"
stream = "commits"
2016-08-14 03:32:11 +02:00
{% if api_site_required %}site = {{ external_api_uri_subdomain }}{% endif %}< / pre >
2016-04-09 05:29:45 +02:00
< / li >
< / ol >
2016-08-18 19:53:16 +02:00
< p > That's all it takes for the basic setup! On the next
< code > hg push< / code > , you'll get a Zulip update for the changeset.< / p >
2016-04-09 05:29:45 +02:00
< h3 > More configuration options< / h3 >
< p > The Mercurial integration also supports:< / p >
< ul >
< li > linking to changelog and revision URLs for your repository's web
UI< / li >
< li > branch whitelists and blacklists< / li >
< / ul >
< h4 > Web repository links< / h4 >
< p > If you've set up your repository to
be < a href = "http://mercurial.selenic.com/wiki/QuickStart#Network_support" > browsable
via the web< / a > , add a < code > web_url< / code > configuration option to
the < code > zulip< / code > section of your master < code > .hg/hgrc< / code > to get
changelog and revision links in your Zulip notifications:< / p >
< pre > < font color = "#B6B6B4" > [zulip]
email = "hg-bot@example.com"
api_key = "0123456789abcdefg"
stream = "commits"< / font >
web_url = "http://hg.example.com:8000/"
2016-08-14 03:32:11 +02:00
{% if api_site_required %}site = {{ external_api_uri_subdomain }}{% endif %}< / pre >
2016-04-09 05:29:45 +02:00
< h4 > Branch whitelists and blacklists< / h4 >
< p > By default, this integration will send Zulip notifications for
changegroup events for all branches. If you'd prefer to only receive Zulip
notifications for specified branches, add a < code > branches< / code >
configuration option to the < code > zulip< / code > section of your
master < code > .hg/hgrc< / code > , containing a comma-separated list of the
branches that should produce notifications:< / p >
< pre > < font color = "#B6B6B4" > [zulip]
email = "hg-bot@example.com"
api_key = "0123456789abcdefg"
stream = "commits"< / font >
branches = "prod,master"< / pre >
< p > You can also exclude branches that you don't want to cause
notifications. To do so, add an < code > ignore_branches< / code > configuration
option to the < code > zulip< / code > section of your
master < code > .hg/hgrc< / code > , containing a comma-separated list of the
branches that should be ignored:< / p >
< pre > < font color = "#B6B6B4" > [zulip]
email = "hg-bot@example.com"
api_key = "0123456789abcdefg"
stream = "commits"< / font >
ignore_branches = "noisy,even-more-noisy"< / pre >
< p > < b > Congratulations! You're done!< / b > < br / > When team members push new
changesets with < code > hg push< / code > , you'll get a Zulip notification that
looks like this:< / p >
< img class = "screenshot" src = "/static/images/integrations/hg/001.png" / >
< / div >
2013-10-21 21:19:31 +02:00
< div id = "nagios" class = "integration-instructions" >
2013-10-28 15:41:21 +01:00
2013-08-26 22:58:16 +02:00
< p > First, create the stream you'd like to use for Nagios notifications,
and subscribe all interested parties to this stream. The integration will
use the default stream < code > nagios< / code > if no stream is supplied in the
configuration; you still need to create the stream even if you are using
this default.< / p >
< p > Next, download and install our < a href = "/api" > Python
2013-02-13 22:19:08 +01:00
bindings and example scripts< / a > on your Nagios server.< / p >
2013-08-07 17:36:46 +02:00
< p > Next, open < code > integrations/nagios/zuliprc.example< / code >
2013-02-13 22:19:08 +01:00
in your favorite editor, and change the following lines to
specify the email address and API key for your Nagios bot,
2013-08-07 17:36:46 +02:00
saving it to < code > /etc/nagios3/zuliprc< / code > on your Nagios
2013-02-13 22:19:08 +01:00
server:< / p >
< div class = "codehilite" > < pre > [api]
2013-12-04 22:17:23 +01:00
email = NAGIOS_BOT_EMAIL_ADDRESS
key = NAGIOS_BOT_API_KEY
2016-08-14 03:32:11 +02:00
{% if api_site_required %}site = {{ external_api_uri_subdomain }}{% endif %}< / pre > < / div >
2013-02-13 22:19:08 +01:00
2013-08-07 18:16:52 +02:00
< p > Copy < code > integrations/nagios/zulip_nagios.cfg< / code >
2013-02-13 22:19:08 +01:00
to < code > /etc/nagios3/conf.d< / code > on your Nagios server.< / p >
2013-08-07 18:16:52 +02:00
< p > Finally, add < code > zulip< / code > to the < code > members< / code >
2016-08-18 19:53:16 +02:00
list for one or more of the contact groups in the
< code > CONTACT GROUPS< / code > section
2013-02-13 22:19:08 +01:00
of < code > /etc/nagios3/conf.d/contacts.cfg< / code > , doing
something like:
2013-11-18 22:57:55 +01:00
< / p >
2013-02-13 22:19:08 +01:00
< div class = "codehilite" > < pre > define contactgroup{
contactgroup_name admins
alias Nagios Administrators
2013-08-07 18:16:52 +02:00
members monitoring< span class = "na" > , zulip< / span >
2013-02-13 22:19:08 +01:00
}
< / pre > < / div >
Once you've done that, reload your Nagios configuration
2013-06-19 23:46:11 +02:00
using < code > /etc/init.d/nagios3 reload< / code > .
2013-02-13 22:19:08 +01:00
< p > < b > Congratulations! You're done!< / b > < br / > When your Nagios
system makes an alert, you'll see a message like the following,
to the stream < code > nagios< / code > (to change this, edit the
2013-08-07 18:16:52 +02:00
arguments to < code > nagios-notify-zulip< / code >
in < code > /etc/nagios3/conf.d/zulip_nagios.cfg< / code > ) with a
2013-12-23 15:39:50 +01:00
topic indicating the service with an issue:< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/nagios/001.png" / >
2013-02-13 22:19:08 +01:00
< p > < b > Testing< / b > < br / > If you
have < a href = "http://nagios.sourceforge.net/docs/3_0/extcommands.html" > external
commands enabled in Nagios< / a > , you can generate a test notice
2016-08-14 08:46:19 +02:00
from your Nagios instance by visiting using the
< code > Send custom service notification< / code > command in
2013-02-13 22:19:08 +01:00
the < code > Service Commands< / code > section of any individual
service's page on your Nagios instance.< / p >
< p > < b > Troubleshooting< / b > < br / > You can confirm whether you've
2013-07-10 22:31:14 +02:00
correctly configured Nagios to run the Zulip plugin by looking
2013-08-07 18:16:52 +02:00
for < code > SERVICE NOTIFICATION< / code > lines mentioning zulip
2013-02-13 22:19:08 +01:00
in < code > /var/log/nagios3/nagios.log< / code > . You can confirm
2013-07-10 22:31:14 +02:00
whether you've configured the Zulip plugin code correctly by
2013-08-07 18:32:51 +02:00
running < code > /usr/local/share/zulip/integrations/nagios/nagios-notify-zulip< / code >
2013-02-13 22:19:08 +01:00
directly.< / p >
< / div >
2013-10-21 21:19:31 +02:00
2017-01-13 16:25:38 +01:00
< div id = "openshift" class = "integration-instructions" >
< p > Ths integration sends a notification every time a deployment is
made in an OpenShift instance.< / p >
< p > First, download our < a href = "/api" > Python
bindings and example scripts< / a > , and move it to your local copy of
the application's repository.< / p >
< p > Then, create a new commit including all the changes made to the
repository, and push it to your app.< / p >
< p > After that, connect to the application through SSH. If you don't know
how to do this, log in to your OpenShift Online account, go to your
application's dashboard, and click "Want to log in to your application?".
< br / > There you'll find the app's SSH user, address, and further
information on SSH, in case you need it.< / p >
< img class = "screenshot" src = "/static/images/integrations/openshift/002.png" / >
< p > Once you have connected, install the Python bindings by running:< / p >
< div class = "codehilite" > < pre >
< span class = "s" > $< / span > cd ~/app-root/repo/< python_bindings_path>
< span class = "s" > $< / span > python setup.py install< / pre >
< / div >
< p > Where < code > < python_bindings_path> < / code > is the path where you
saved the bindings in the first step.< / p >
< p > Next, open < code > integrations/openshift/zulip_openshift_config.py< / code >
inside the SSH terminal with your favorite editor, and change the
following lines to specify the email address and API key for your
OpenShift integration:< / p >
< div class = "codehilite" >
< pre > < span class = "n" > ZULIP_USER< / span > < span class = "o" > =< / span > < span class = "s" > "openshift-bot@example.com"< / span >
< span class = "n" > ZULIP_API_KEY< / span > < span class = "o" > =< / span > < span class = "s" > "0123456789abcdef0123456789abcdef"< / span >
{% if api_site_required %}< span class = "n" > ZULIP_SITE< / span > < span class = "o" > =< / span > < span class = "s" > "{{ external_api_uri_subdomain }}"< / span > {% endif %}< / pre >
< / div >
< p > You can also specify which pushes will result in
notifications and to what stream the notifications will be sent
by modifying the < code > deployment_notice_destination< / code > function
in < code > zulip_openshift_config.py< / code > . By default, deployments
triggered by commits pushed to the < code > master< / code > and
< code > test-post-receive< / code > branches will result in a notification
to stream < code > deployments< / code > .< / p >
< p > Save the file, and symlink
< code > $OPENSHIFT_PYTHON_DIR/virtenv/share/zulip/integrations/openshift/post-receive< / code >
into the < code > ~/app-root/repo/.openshift/action_hooks< / code >
directory.< / p >
< p > Next, create the stream you'd like to use for OpenShift notifications,
and subscribe all interested parties to this stream. The integration will
use the default stream < code > deployments< / code > if no stream is supplied
in the hook; you still need to create the stream even if you are using
this default.< / p >
< p > < b > Congratulations! You're done!< / b > < br / > Whenever you make
a push to the < code > master< / code > branch of your application's repository
(or whichever branch you configured above), or if you force a deployment,
the Zulip OpenShift plugin will send an automated notification that
looks like this:< / p >
< img class = "screenshot" src = "/static/images/integrations/openshift/001.png" / >
< p > < b > Testing< / b > < br / > You can test the plugin without changing
your < code > master< / code > branch by pushing to
the < code > test-post-receive< / code > branch.< / p >
< / div >
2013-12-05 22:31:37 +01:00
< div id = "perforce" class = "integration-instructions" >
< p > Zulip supports integration with Perforce as a
< a href = "http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.scripting.html" > trigger< / a >
that fires once a changelist is submitted and committed. To do this:< / p >
< ol >
< li > Download and install our < a href = "/api" > Python bindings< / a > on the
server that hosts your Perforce depot. The Perforce trigger will be
installed to a location like
< code > /usr/local/share/zulip/integrations/perforce< / code > < / li >
< li > Open < code > integrations/perforce/zulip_perforce_config.py< / code > in
2016-11-03 22:51:21 +01:00
your favorite editor, change the < code > ZULIP_USER< / code > and
2013-12-05 22:31:37 +01:00
< code > ZULIP_API_KEY< / code > variables at the top of the file to the
credentials for the bot you'd like to use for this integration.< / li >
2016-11-03 22:51:21 +01:00
< li > You should also change < code > ZULIP_SITE< / code > to {{ external_api_path_subdomain }}< / li >
2013-12-05 22:31:37 +01:00
< li > Edit your
< a href = "http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.scripting.html#d0e14583" > trigger table< / a >
with < code > p4 triggers< / code > and add an entry something like the
following:
2016-11-22 01:44:16 +01:00
< pre > notify_zulip change-commit //depot/... "/usr/local/share/zulip/integrations/perforce/zulip_change-commit.py %change% %changeroot%"< / pre >
2013-12-05 22:31:37 +01:00
< / li >
< li > By default, this hook will send to streams of the form
< code > depot_subdirectory-commits< / code > . So, a changelist that modifies
files in < code > //depot/foo/bar/baz< / code > will result in a message to
stream < code > foo-commits< / code > . Messages about changelists that modify
files in the depot root or files in multiple direct subdirectories of
the depot root will be sent to < code > depot-commits< / code > . If you'd
prefer different behavior, such as all commits across your depot going
to one stream, change it now in < code > zulip_perforce_config.py< / code > .
Make sure that everyone interested in getting these post-commit Zulips
is subscribed to the relevant streams!< / li >
< / ol >
< p > < b > Congratulations! You're done!< / b > < br / > When you commit to your
Perforce depot the team can see updates in real time in
Zulip:< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/perforce/001.png" / >
2013-12-05 22:31:37 +01:00
< / div >
2013-10-21 21:19:31 +02:00
< div id = "phabricator" class = "integration-instructions" >
2013-09-23 23:18:17 +02:00
2016-03-14 22:12:46 +01:00
< p > Zulip supports integration with Phabricator and can notify you of the
2013-09-23 23:18:17 +02:00
latest items in your Phabricator feed.< / p >
< p > You can follow the instructions at
2016-11-26 00:25:05 +01:00
< a href = "https://github.com/zulip/phabricator-to-zulip" >
https://github.com/zulip/phabricator-to-zulip
< / a >
to get it set up.
< / p >
2013-04-18 17:53:45 +02:00
< / div >
2013-10-21 21:19:31 +02:00
2013-12-24 04:46:59 +01:00
< div id = "puppet" class = "integration-instructions" >
< p > Zulip supports Puppet integration and can notify you when Puppet runs fail (or when they happen at all).< / p >
< p > You can follow the instructions at
< a href = "https://forge.puppetlabs.com/mbarr/puppet_zulip" >
https://forge.puppetlabs.com/mbarr/puppet_zulip
< / a >
to get it set up.
< / p >
< p > < small > Thanks to Matt from Kensho for submitting this integration!< / small > < / p >
2013-08-26 22:58:16 +02:00
2013-07-23 21:50:29 +02:00
< / div >
2013-10-21 21:19:31 +02:00
< div id = "redmine" class = "integration-instructions" >
2013-09-27 23:44:25 +02:00
< p > Get information on new or updated Redmine issues right in
Zulip with our Zulip Redmine plugin! Note: this setup must be
done by a Redmine Administrator.< / p >
< p > First, create the stream you'd like to use for Redmine notifications,
and subscribe all interested parties to this stream. We recommend the
name < code > redmine< / code > .< / p >
< p > Then:< / p >
< ol >
< li >
< p > Clone
the < a href = "https://github.com/zulip/zulip-redmine-plugin" > Zulip
Redmine plugin repository< / a > by running:< / p >
< pre > git clone https://github.com/zulip/zulip-redmine-plugin< / pre >
< / li >
< li >
< p > Follow
the < a href = "http://www.redmine.org/projects/redmine/wiki/Plugins" > Redmine
plugin installation guide< / a > to install
the < code > zulip_redmine< / code > plugin directory, which is a
subdirectory of the < code > zulip-redmine-plugin< / code > repository
directory. In a nutshell, the steps are:< / p >
< ol type = "A" >
< li >
< p > Copy the < code > zulip_redmine< / code > directory to
the < code > plugins< / code > directory of your Redmine
instance.< / p > < / li >
< li >
< p > Update the Redmine database by running (for Rake 2.X, see the
guide for instructions for older versions):< / p >
< pre > rake redmine:plugins:migrate RAILS_ENV=production< / pre >
< / li >
< li >
< p > Restart your Redmine instance.< / p >
< / li >
< / ol >
< p > The Zulip plugin is now registered with Redmine!< / p >
< / li >
< li >
2016-08-14 03:32:11 +02:00
< p > On your {{ settings_html|safe }}, create a new Redmine bot.< / p >
2013-09-27 23:44:25 +02:00
< / li >
< li >
< p > To configure Zulip notification settings that apply to many
projects in one go, in Redmine click the "Administration" link in
the top left. Click the "Plugins" link on the Administration page,
and click the "Configure" link to the right of the Zulip plugin
description. In the "Projects" section, select all projects to which
you want these settings to apply.< / p >
< p > To configure Zulip notifications for a particular Redmine project,
visit the project's Settings page.< / p >
< p >
2016-11-04 18:45:50 +01:00
In either case, fill out zulip server by < code > {{ external_api_path_subdomain }}< / code > ,
the bot email address, and API key, and the
2013-09-27 23:44:25 +02:00
Zulip stream that should receive notifications. Apply your changes.
< / p >
< / li >
< li >
< p > To test the plugin, create an issue or update an existing issue in
a Redmine project that has Zulip notifications configured (any
project, if you've configured global settings).< / p >
< / li >
< / ol >
< p > < b > Congratulations! You're done!< / b > < br / > When you update issues in
Redmine, the team can see these updates in real time in Zulip:< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/redmine/001.png" / >
2013-09-27 23:44:25 +02:00
< / div >
2013-10-21 21:19:31 +02:00
2014-01-02 19:02:17 +01:00
< div id = "rss" class = "integration-instructions" >
< h4 > RSS< / h4 >
< p > Get service alerts, news, and new blog posts right in Zulip with our
RSS integration!< / p >
< p > First, create the stream you'd like to use for RSS notifications, and
subscribe all interested parties to this stream. We recommend the
name < code > rss< / code > .< / p >
2016-08-14 03:32:11 +02:00
< p > Next, on your {{ settings_html|safe }}, create an RSS bot.< / p >
2014-01-02 19:02:17 +01:00
< p > Then, download and install our < a href = "/api" > Python bindings< / a > on
the server where the RSS bot will live. The RSS integration will be
installed to a location
like < code > /usr/local/share/zulip/integrations/rss/rss-bot< / code > .< / p >
< p > Follow the instructions in the < code > rss-bot< / code > script for
configuring the bot, adding your subscriptions, and setting up a cron job
to run the bot.< / p >
< p > < b > Congratulations! You're done!< / b > < br / > When new items appear in
your feeds, the team can see these updates in real time in Zulip:< / p >
< img class = "screenshot" src = "/static/images/integrations/rss/001.png" / >
< / div >
2013-10-21 21:19:31 +02:00
< div id = "subversion" class = "integration-instructions" >
2013-05-29 16:38:46 +02:00
2013-07-10 22:31:14 +02:00
< p > It is easy to send Zulips on SVN commits, by configuring a post-commit
2013-05-29 16:38:46 +02:00
hook. To do this:< / p >
2013-08-26 22:58:16 +02:00
< p > First, create the stream you'd like to use for SVN commit
notifications, and subscribe all interested parties to this stream. The
integration will use the default stream < code > commits< / code > if no stream
is supplied in the hook; you still need to create the stream even if you
are using this default.< / p >
< p > Then:< / p >
2013-05-29 16:38:46 +02:00
< ol >
< li > Download and install our < a href = "/api" > Python bindings< / a > on the
server where the SVN repository lives.< / li >
< li > Install < code > pysvn< / code > . On Linux, you can install
the < code > python-svn< / code > package. On other platforms, you can install
a binary or from source following
the < a href = "http://pysvn.tigris.org/project_downloads.html" > instructions
on the pysvn website< / a > .< / li >
2013-08-07 17:55:22 +02:00
< li > Copy < code > integrations/svn/zulip_svn_config.py< / code >
2013-05-29 16:38:46 +02:00
and < code > integrations/svn/post-commit< / code > from the API bindings
directory to the < code > hooks< / code > subdirectory of your SVN
repository.< / li >
2013-12-04 22:01:10 +01:00
< li > < p > Next, open < code > integrations/git/zulip_svn_config.py< / code >
in your favorite editor, and change the following lines to
configure your SVN integration:< / p >
< div class = "codehilite" > < pre > < span class = "n" > ZULIP_USER< / span > < span class = "o" > =< / span > < span class = "s" > "svn-bot@example.com"< / span >
< span class = "n" > ZULIP_API_KEY< / span > < span class = "o" > =< / span > < span class = "s" > "0123456789abcdef0123456789abcdef"< / span >
2016-08-14 03:32:11 +02:00
{% if api_site_required %}< span class = "n" > ZULIP_SITE< / span > < span class = "o" > =< / span > < span class = "s" > "{{ external_api_uri_subdomain }}"< / span > {% endif %}< / pre > < / div >
2013-12-04 22:01:10 +01:00
< / li >
2013-05-29 16:38:46 +02:00
< li > The default stream used by this post-commit hook
is < code > commits< / code > ; if you'd prefer a different stream, change it
2013-08-07 17:55:22 +02:00
now in < code > zulip_svn_config.py< / code > . Make sure that everyone
2013-07-10 22:31:14 +02:00
interested in getting these post-commit Zulips is subscribed to that
2013-05-29 16:38:46 +02:00
stream!< / li >
< / ol >
< p > < b > Congratulations! You're done!< / b > < br / > When you commit to this SVN
2013-07-10 22:31:14 +02:00
repository, the team can see these updates in real time in Zulip:< / p >
2013-05-29 16:38:46 +02:00
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/svn/001.png" / >
2013-05-29 16:38:46 +02:00
< / div >
2013-10-21 21:19:31 +02:00
< div id = "trac" class = "integration-instructions" >
2013-08-26 22:58:16 +02:00
< p > First, create the stream you'd like to use for Trac notifications, and
subscribe all interested parties to this stream. The integration will use
the default stream < code > trac< / code > if no stream is supplied in the
hook; you still need to create the stream even if you are using this
default.< / p >
< p > Next, download and install our < a href = "/api" > Python
2013-02-14 19:46:23 +01:00
bindings and example scripts< / a > on your Trac server.< / p >
2013-02-06 22:31:26 +01:00
2013-08-07 17:55:22 +02:00
< p > Next, open < code > integrations/trac/zulip_trac_config.py< / code > in
2013-02-13 22:48:16 +01:00
your favorite editor, and change the following lines to specify
your bot's email address, API key, and where you'd like your
2013-02-06 22:31:26 +01:00
notification messages to go (by default,
stream < code > trac< / code > ):< / p >
2013-08-07 18:01:49 +02:00
< div class = "codehilite" > < pre > < span class = "n" > ZULIP_USER< / span > < span class = "o" > =< / span > < span class = "s" > "trac-notifications-bot@example.com"< / span >
< span class = "n" > ZULIP_API_KEY< / span > < span class = "o" > =< / span > < span class = "s" > "0123456789abcdef0123456789abcdef"< / span >
2013-02-06 22:31:26 +01:00
< span class = "n" > STREAM_FOR_NOTIFICATIONS< / span > < span class = "o" > =< / span > < span class = "s" > "trac"< / span >
2013-12-04 21:58:45 +01:00
< span class = "n" > TRAC_BASE_TICKET_URL< / span > < span class = "o" > =< / span > < span class = "s" > "https://trac.example.com/ticket"< / span >
2016-08-14 03:32:11 +02:00
{% if api_site_required %}< span class = "n" > ZULIP_SITE< / span > < span class = "o" > =< / span > < span class = "s" > "{{ external_api_uri_subdomain }}"< / span > {% endif %}< / pre > < / div >
2013-02-06 22:31:26 +01:00
2013-08-07 18:01:49 +02:00
< p > Copy < code > integrations/trac/zulip_trac.py< / code >
2013-08-07 17:55:22 +02:00
and < code > integrations/trac/zulip_trac_config.py< / code > into
2013-02-14 19:46:23 +01:00
your Trac installation's < code > plugins/< / code >
subdirectory. Once you've done that, edit your Trac
installation's < code > conf/trac.ini< / code > to
2013-08-07 18:01:49 +02:00
add < code > zulip_trac< / code > to the < code > [components]< / code >
2013-02-14 19:46:23 +01:00
section, as follows:< / p >
2013-02-06 22:31:26 +01:00
< div class = "codehilite" > < pre > < span class = "k" > [components]< / span >
2013-08-07 18:01:49 +02:00
< span class = "na" > zulip_trac< / span > < span class = "o" > =< / span > < span class = "s" > enabled< / span > < / pre > < / div >
2013-02-06 22:31:26 +01:00
< p > You may then need to restart Trac (or Apache) so that Trac will load our plugin.< / p >
< p > < b > Congratulations! You're done!< / b > < br / > When people open
new tickets (or edit existing tickets), you'll see a message
like the following, to the stream < code > trac< / code > (or whatever
2013-12-23 15:39:50 +01:00
you configured above) with a topic that matches the ticket
2013-02-06 22:31:26 +01:00
name:< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/trac/001.png" / >
2013-02-06 22:31:26 +01:00
2013-02-13 22:48:16 +01:00
< p > < b > Additional trac configuration< / b > < br / > After using the plugin
for a while, you may want to customize which changes to tickets
2013-07-10 22:31:14 +02:00
result in a Zulip notification using
2013-02-13 22:48:16 +01:00
the < code > TRAC_NOTIFY_FIELDS< / code > setting
2013-08-07 17:55:22 +02:00
in < code > zulip_trac_config.py< / code > .< / p >
2013-02-06 22:31:26 +01:00
< / div >
2013-10-21 21:19:31 +02:00
2016-05-05 07:06:41 +02:00
< div id = "trello-plugin" class = "integration-instructions" >
< p >
This legacy integration for Trello works by running a script
that communicates with the Trello API in a cron job. We
recommend < a href = "#trello" > the new Trello webhook
integration< / a > (which will eventually replace this entirely).
Please < a href = "https://github.com/zulip/zulip/issues/new" > report
any issues< / a > which cause you to prefer this integration over
the webhook integration.
< / p >
2013-08-26 22:58:16 +02:00
< p > First, create the stream you'd like to use for Trello notifications,
and subscribe all interested parties to this stream. We recommend the
name < code > trello< / code > .< / p >
< p > Next, download a copy
2016-01-20 19:11:53 +01:00
of < a href = "https://github.com/zulip/trello-to-zulip" > trello-to-zulip< / a >
2013-07-23 17:21:25 +02:00
and follow the instructions in < code > README.md< / code > . When you
make changes in Trello, they will be reflected in Zulip:
< / p >
2016-05-05 07:06:41 +02:00
< img class = "screenshot" src = "/static/images/integrations/trello/002.png" / >
2016-07-14 05:59:16 +02:00
< p > < small > Thanks to Nathan from FoundationDB for submitting this integration!< / small > < / p >
2013-07-23 17:21:25 +02:00
< / div >
2013-10-21 21:19:31 +02:00
< div id = "twitter" class = "integration-instructions" >
2013-10-16 04:28:13 +02:00
< p > See Twitter search results in Zulip! This is great for seeing and
discussing who is talking about you, friends, competitors, or important
topics in real time.< / p >
< p > First, create the stream you'd like to use for tweets, and subscribe
all interested parties to this stream. We recommend the
name < code > twitter< / code > .< / p >
< p > Next, download and install our < a href = "/api" > Python bindings and
example scripts< / a > . This bot should be set up on a trusted machine,
because your API key is visible to local users through the command line or
config file.< / p >
< p > Next, install < b > version 1.0 or later< / b > of
the < code > twitter-python< / code > library. If your operating system
distribution doesn't package a new enough version, you can install the
library from source
from < a href = "https://github.com/bear/python-twitter" > the GitHub
repository< / a > .< / p >
< p > Next, set up Twitter authentication. This bot uses OAuth to
authenticate with Twitter, and in order to obtain a consumer key & secret,
you must register a new application under your Twitter account:< / p >
< ol >
< li >
Log in to < a href = "http://dev.twitter.com" > http://dev.twitter.com< / a > .
< / li >
< li >
In the menu under your username,
click < a href = "https://dev.twitter.com/apps" > My Applications< / a > . From
this page, create a new application.
< / li >
< li >
Click on the application you created and click "create my access
token". Fill in the requested values.
< / li >
< / ol >
< p > To configure and deploy this bot:< / p >
< ol >
< li >
Create a < code > ~/.zulip_twitterrc< / code > with the following
contents:
< pre > [twitter]
consumer_key =
consumer_secret =
access_token_key =
access_token_secret =< / pre >
< / li >
< li >
Test the script by running it manually:
2016-11-16 18:35:36 +01:00
< pre >
/usr/local/share/zulip/integrations/twitter/twitter-search-bot --search="@nprnews,quantum physics" --site={{ external_api_uri_subdomain }}
< / pre >
2013-10-16 04:28:13 +02:00
Note: < code > twitter-search-bot< / code > may install to a different
location on your operating system distribution.
< / li >
< li >
Configure a crontab entry for this script. A sample crontab entry that
will process tweets every minute is:
2016-11-16 18:35:36 +01:00
< pre >
* * * * * /usr/local/share/zulip/integrations/twitter/twitter-search-bot --search="@nprnews,quantum physics" --site={{ external_api_uri_subdomain }}
< / pre >
2013-10-16 04:28:13 +02:00
< / li >
< / ol >
< p > < b > Congratulations! You're done!< / b > < br / > When someone tweets a
message containing one of your search terms, you'll get a Zulip on your
specified stream, with the search term as the topic.< / p >
2013-12-17 17:37:28 +01:00
< img class = "screenshot" src = "/static/images/integrations/twitter/001.png" / >
2016-01-10 08:23:01 +01:00
< p > Note that the twitter search bot integration < b > just sends
links to tweets< / b > ; the pretty inline previews of tweets are
generated by the Twitter card rendering integration configured
in < code > /etc/zulip/settings.py< / code > on the Zulip server.< / p >
2013-10-16 04:28:13 +02:00
< / div >
2013-10-21 21:19:31 +02:00
< / div >
2013-02-06 20:25:04 +01:00
2013-04-02 20:01:23 +02:00
{% endblock %}
{% block customhead %}
2016-04-21 08:48:33 +02:00
{{ super() }}
2013-02-06 20:25:04 +01:00
< script type = "text/javascript" >
$(function() {
$("a.title").addClass("show-integral");
2013-02-11 22:34:20 +01:00
$("a.title").prepend($("< span class = 'integral' > ∫< / span > "));
$("a.title").hover(function (e) {
$(".integral").css("display", "inline");
var width = $(".integral").width();
$("a.title").css("left", -1 * width);
},
function (e) {
$(".integral").css("display", "none");
$("a.title").css("left", 0);
});
2013-10-21 21:19:31 +02:00
var newlozenge,
currentblock,
currentlink,
currentlozenge,
instructionbox = $("#integration-instruction-block"),
hashes = $('.integration-instructions').map(function() {
return this.id || null;
}).get();
function switchToIntegration(integrationHash) {
var cleanHash = integrationHash.substr(1);
if (hashes.indexOf(cleanHash) > -1) {
currentblock = $(integrationHash);
currentlozenge = $(".integration-lozenge.integration-" + cleanHash);
2016-02-23 21:04:12 +01:00
$(".integration-lozenges, .portico-page-header.extra, .portico-large-text.extra").hide();
2013-10-21 21:19:31 +02:00
newlozenge = currentlozenge.clone();
newlozenge.find(".integration-logo").unwrap();
newlozenge.addClass("integration-lozenge-static");
instructionbox.hide();
2016-07-14 05:47:34 +02:00
$("#integration-main-text").hide();
2013-10-21 21:19:31 +02:00
instructionbox.children(".integration-lozenge").remove();
instructionbox.children(".integration-instructions").appendTo("#integration-instructions-group");
instructionbox.append(newlozenge);
instructionbox.append(currentblock);
instructionbox.show();
$("#integration-list-link").css("display", "block");
window.scrollTo(0,0);
}
}
function updateHash () {
2016-02-23 21:04:12 +01:00
var hash = document.location.hash;
if (hash & & hash != '#hubot-integrations') {
2013-10-21 21:19:31 +02:00
switchToIntegration(document.location.hash);
}
else if (currentblock & & newlozenge) {
$("#integration-list-link").css("display", "none");
2016-02-23 21:04:12 +01:00
$(".integration-lozenges, .portico-page-header.extra, .portico-large-text.extra").show();
2016-07-14 05:47:34 +02:00
$("#integration-main-text").show();
2013-10-21 21:19:31 +02:00
instructionbox.hide();
newlozenge.remove();
currentblock.appendTo("#integration-instructions-group");
2016-02-23 21:04:12 +01:00
$('html, body').animate({scrollTop: $(hash).offset().top}, 'slow');
2013-10-21 21:19:31 +02:00
}
}
window.onhashchange = updateHash;
updateHash();
2013-02-06 20:25:04 +01:00
});
< / script >
2013-10-21 21:19:31 +02:00
2013-02-06 20:25:04 +01:00
{% endblock %}