Rafid Aslam
d4410365ea
pep8: Fix E225 pep8 violations.
2016-11-28 15:21:15 -08:00
Tim Abbott
245c05decd
twitter-search-bot: Line-wrap very long lines.
2016-11-26 21:24:05 -08:00
Tomasz Kolek
963de743ec
Document ZULIP SITE param in twitter bots.
2016-11-26 19:30:45 -08:00
Tomasz Kolek
f380127f1e
integrations: Change default ZULIP_SITE to https://zulip.example.com .
...
Modified:
asana
basecamp
codebase
git
jira
svn
trac
2016-11-26 19:30:32 -08:00
Tomasz Kolek
3e877e069f
Add documentation for changing SITE param in perforce configuration.
2016-11-26 19:24:24 -08:00
Anders Kaseorg
c748962855
Remove shebang line from non-scripts
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 13:20:22 -08:00
Anders Kaseorg
f2b82f3ad8
Mark scripts executable
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2016-11-26 13:20:22 -08:00
bungeye
7bd78456b3
Update twitter-bot to use latest python-twitter API.
2016-11-17 11:17:58 -08:00
Tim Abbott
253196af35
rss-bot: Fix incorrect use of zulip.generate_option_group.
...
The fields set by the automatic option group all have `zulip_` at the
start of their names.
2016-11-14 22:48:28 -08:00
paxapy
e1dcf74242
lint: Fix E703 pep8 violations.
2016-11-09 15:18:35 -08:00
Tim Abbott
7187c2ef5e
twitter bots: Update to use current python-twitter.
...
It appears that twitter has changed several of its APIs.
2016-10-17 23:21:39 -07:00
Tim Abbott
9559046741
post-receive: Revert buggy Python 3 import changes.
...
This reverts commit 0af154a30182979d6bf5aa9289d0c9b37d923819.
2016-09-27 21:18:29 -07:00
Tim Abbott
8d75662c7c
Update zulip.com/integrations link to point to zulipchat.com.
...
zulip.com will stop running at some point in the near future, and we
don't want these links to break.
2016-08-22 17:26:41 -07:00
Taranjeet
6034ae7b9a
Wrap some lines with length greater than 120.
...
With some tweaks by tabbott.
2016-07-06 14:35:16 -07:00
Eklavya Sharma
e786295352
Replace python2.7 by python everywhere.
2016-05-29 05:03:08 -07:00
Eklavya Sharma
a21cb61b3f
Change shebangs from python2.7 to python.
2016-05-29 05:03:08 -07:00
Tim Abbott
4868cc74ea
Fix unnecessary whitespace between , and ).
2016-05-04 14:16:53 -07:00
David Payne
694e98a1b0
Jira's "issue created" message should @-notify the assignee.
2016-04-20 10:54:30 -07:00
Eklavya Sharma
2634792cdc
Apply Python 3 futurize transform libfuturize.fixes.fix_absolute_import.
2016-04-05 13:22:51 -07:00
Eklavya Sharma
f4643de011
Apply Python 3 futurize transform libmodernize.fixes.fix_imports_six
...
Refer to #256
2016-03-10 22:03:30 -08:00
Eklavya Sharma
6e69c1447a
Apply Python 3 futurize transform libmodernize.fixes.fix_basestring
...
Refer to #256
2016-03-10 22:02:27 -08:00
Eklavya Sharma
37365ba5a3
Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import
...
Refer #256
2016-03-10 22:02:17 -08:00
Eklavya Sharma
d998bc400a
Apply Python 3 futurize transform lib2to3.fixes.fix_ws_comma
2016-03-10 22:02:04 -08:00
Eklavya Sharma
26eeb9549e
Apply Python 3 futurize transform lib2to3.fixes.fix_idioms
...
Refer to #256
2016-03-10 22:02:01 -08:00
Eklavya Sharma
d8b2b5a0d8
Apply Python 3 futurize transform lib2to3.fixes.fix_has_key
...
Refer to #256
2016-03-10 22:01:55 -08:00
Eklavya Sharma
5272ca0674
Apply Python 3 futurize transform lib2to3.fixes.fix_except
2016-03-10 22:01:50 -08:00
Tim Abbott
b9eacb19c9
python3: Fix usage of .keys()/.values() to handle iterators.
...
This fixes the places where we use the result of .keys(), .items(),
and .values() that wouldn't work with an iterator to wrap them with
list().
2016-01-26 21:11:25 -08:00
Tim Abbott
a8c4facc67
Switch to using Python 3 style division everywhere.
...
Also add testing for this to our Python 3 compatibility test suite.
2016-01-26 21:09:43 -08:00
Tim Abbott
4dc5761ce2
Switch all urllib/urlparse usage to six.moves.urllib.
...
This provides Python 2+3 compatibility for our use of urllib.
Also add a test to avoid future regressions.
2016-01-26 21:09:43 -08:00
Tim Abbott
9096dfc774
trac: Cleanup documentation of TRAC_NOTIFY_FIELDS.
2016-01-09 20:21:39 -08:00
Tim Abbott
1cfb0ee407
Cleanup remaining usage of % comprehensions without explicit tuples.
2015-12-05 15:29:42 -08:00
Tim Abbott
e4f85d2462
Use new-style classes consistently for Python 3 support.
...
Also add the fixer for this to our list of fixers we check.
2015-11-04 08:01:52 -08:00
Tim Abbott
a8341dcdff
Apply Python 3 futurize transform libmodernize.fixes.fix_zip.
2015-11-01 09:35:06 -08:00
Tim Abbott
c5e2995b6e
Apply Python 3 futurize transform libmodernize.fixes.fix_xrange_six.
2015-11-01 09:35:06 -08:00
Tim Abbott
f714cd15a9
Apply Python 3 futurize transform libmodernize.fixes.fix_input_six.
2015-11-01 09:26:17 -08:00
Tim Abbott
abd939f16d
Apply Python 3 futurize transform libmodernize.fixes.fix_basestring.
2015-11-01 09:26:16 -08:00
Tim Abbott
328816a329
Apply Python 3 futurize transform libfuturize.fixes.fix_print_with_import.
2015-11-01 09:26:16 -08:00
Tim Abbott
b5a4135931
Apply Python 3 futurize transform lib2to3.fixes.fix_ws_comma.
2015-11-01 09:26:14 -08:00
Tim Abbott
2ec8d0a507
Apply Python 3 futurize transform lib2to3.fixes.fix_repr.
2015-11-01 09:25:49 -08:00
Tim Abbott
e2a5b50b31
Apply Python 3 futurize transform lib2to3.fixes.fix_ne.
2015-11-01 09:25:49 -08:00
Tim Abbott
49922b9474
Apply Python 3 futurize transform lib2to3.fixes.fix_idioms.
2015-11-01 09:25:47 -08:00
Tim Abbott
5f1d06390c
Apply Python 3 futurize transform lib2to3.fixes.fix_has_key.
2015-11-01 08:10:01 -08:00
Bernhard Morgenstern
bad47da16e
Fix indentation for Trac ticket description changes.
...
Before this fix, the "to" was included in the markdown blocks.
2015-10-22 15:02:35 -07:00
Steven Oud
b0325fef5b
Consistently use /usr/bin/env python2.7 in shebangs and commands.
2015-10-21 22:58:21 +00:00
Waseem Daher
8281e557b1
Update Zulip support email to zulip-devel@googlegroups.com.
...
Ideally some of these templates should really point to the
local installation's support email address, but this is a
good start.
Exceptions:
* Where to report security incidents
* MIT Zephyr-related pages
* zulip.com terms and conditions
2015-09-29 17:59:47 -07:00
Tim Abbott
f69b9209be
rss: Support feeds that don't provide any sort of timestamp.
...
(imported from commit 9acc9dad7543a0e0a6bc2e71360b7017c3c7c63d)
2015-09-25 03:57:51 -07:00
Tim Abbott
41c2b62da0
Fix a bunch of Zulip Voyager related comments.
...
(imported from commit 176e875cbc310ba00d6137930ddb718bd68f1866)
2015-08-21 10:40:54 -07:00
David Roe
3d7c94c1a8
Enterprise => Voyager.
...
(imported from commit 41b9a67301aeaf5fd40bbbb8f34a326ca98431fd)
2015-08-21 10:33:35 -07:00
David Roe
25dbc68fea
deployed => production
...
(imported from commit 2d7b0a7a73b0c84b32634a88af1e0d666139d4ff)
2015-08-21 10:33:35 -07:00
Jessica McKellar
cc03d58203
integrations: make Codebase dependency on python-dateutil explicit.
...
requests is already required generally by the API bindings.
(imported from commit 216c7031def710aac415cca755dbe2454514decb)
2014-03-14 20:48:48 -04:00
Jessica McKellar
67b7be0b67
integrations: make Asana dependency on python-dateutil explicit.
...
(imported from commit 354b42f68e3d1f980649993bad4dbe4ff79a11d6)
2014-03-14 20:48:48 -04:00
Zev Benjamin
4db2dab645
api: Disambiguate the names of Zulip options
...
(imported from commit 67525764cc2f2a26081640063e2d78852f6229ca)
2014-03-03 17:29:52 -05:00
Jessica McKellar
0b1cd703dd
Update copyright to 2014.
...
(imported from commit 733baed61e26be0c07a7e7a605618087df6b0866)
2014-02-04 15:51:53 -05:00
Jessica McKellar
b0c7153107
Document our RSS integration.
...
(imported from commit 61e956705b526b4bbeb3a0908d00ebd92d216395)
2014-01-02 13:39:32 -05:00
Waseem Daher
9faec9d778
Shorter topics for git/svn integration.
...
(imported from commit 6c9822f6ba383d885e48d3bb64c30e49ea8cf1e5)
2013-12-11 12:20:42 -05:00
Luke Faraone
e7e90bd60e
Specify client in User-agent in our Jira integration.
...
(imported from commit e436478c6fd2836c06faa90ddb1ca5641d3f61e4)
2013-12-09 11:47:54 -05:00
Luke Faraone
c03ac5e3ce
Update style of client strings.
...
(imported from commit 1516461cf53b2715de68e01f16bb8a8cc33c48ad)
2013-12-09 11:47:52 -05:00
Luke Faraone
a1cf1f04a2
Add a version number to our Perforce integration.
...
(imported from commit 402f7a1e57aa1c77255cdc5c58a081a8b209a65d)
2013-12-09 11:47:20 -05:00
Luke Faraone
6478da983e
Perforce integration.
...
This is designed to be run as a "change-commit" trigger. See [Perforce's
documentation][1] on how to set up a trigger for your platform.
[1]: http://www.perforce.com/perforce/r12.1/manuals/cmdref/triggers.html
Closes trac #1034 .
(imported from commit d94fa4e50637ade2847a96eab8c5514de3811c24)
2013-12-06 11:54:38 -05:00
Luke Faraone
bd72921f7e
[third] Disable git_p4's usage of git configuration
...
Since we're using the module outside of a git repository context we
don't have a git config to reference. Instead, we'll just use the
environment variables we're passed.
(imported from commit 8ae707d5d60eb700052e0ee89e7d36c660e00bb6)
2013-12-06 11:54:38 -05:00
Luke Faraone
4e7eb8b377
[third] Import git's P4 command.
...
From github.com/git/git@34022ba
License: Expat
(imported from commit 995439bf2fc458ef7ed73fd7ea9add77abacbc53)
2013-12-06 11:54:38 -05:00
Waseem Daher
7345a878e9
Add "client" string to Nagios integration.
...
(imported from commit 0e42d297b5be668da9b28c9970621a1f9a4229ca)
2013-12-05 18:06:13 -05:00
Waseem Daher
2240a03c9e
Add 'client' string to our missing integrations.
...
Not done: Jira, Nagios
(imported from commit 3e2505653b377f8c307745e507bdc40e980dca05)
2013-12-05 17:51:21 -05:00
Tim Abbott
1c320cce17
api: Add support for setting site in mercurial integration.
...
(imported from commit 697f4697af27be6f4eddd6ddbf7affbc8739cffe)
2013-12-04 16:30:57 -05:00
Tim Abbott
c9b0e190d0
api: Update documentation on ZULIP_SITE option.
...
(imported from commit 82109dc08847240440f90524343c0f9562e4a0bf)
2013-12-04 15:14:15 -05:00
Jessica McKellar
1e79f5fc85
rss-bot: handle feeds that don't have a title.
...
(imported from commit 2d95ee0cd85ac25a7c0241ce1747509e2f9c6be6)
2013-11-22 11:28:19 -05:00
Tim Abbott
3da6c41345
Use the new !avatar syntax in our git integration.
...
(imported from commit e00bc63f6fb1944ed206b3ede5431ac2b1ae1ac2)
2013-11-20 13:10:43 -05:00
Jessica McKellar
6fbf905289
Add basic Asana integration.
...
Due to limitations in their API, we have to poll and check for
creation and completion events.
(imported from commit be65e507fac16a7f8ad3dc57b2af9c4b98aacf39)
2013-11-19 13:30:34 -05:00
Tim Abbott
1232e7d0ab
Update paths to rss-bot.
...
(imported from commit ab6ea5e881593c8533680323bf525faacc2ddfec)
2013-11-18 08:11:06 -05:00
Tim Abbott
3493c4fa76
Fix rss-bot parsing of feeds that don't specify a post ID.
...
(imported from commit 67fdb8b92b39fc14c81b87b7fa8089964c07be8b)
2013-11-18 08:11:06 -05:00
Tim Abbott
efa5df1fac
Clean up some unused imports.
...
(imported from commit 0c5d8e2a55ba1b8909ba807fee3afe863dcdc226)
2013-11-04 11:51:17 -05:00
Jessica McKellar
1d0edf473c
Add a first pass at Mercurial changegroup (hg push) integration.
...
(imported from commit 94c91aed6282a2fffcd7753a06dc68a298b7bdc7)
2013-10-29 09:58:04 -04:00
Jessica McKellar
43764d415c
twitter-search-bot: update the path to the bot in the help.
...
(imported from commit c1097685870029d9f6e7d0ba5a9e61912cf00885)
2013-10-16 21:26:01 -04:00
Jessica McKellar
13fb709e96
twitter-search-bot: add the version requirement for twitter-python to the help.
...
(imported from commit dbee40c3081e50b07a80a297691acf98f4aaf89a)
2013-10-16 21:26:01 -04:00
Jessica McKellar
10f3424edf
twitter-search-bot: Consistently capitalize Twitter.
...
(imported from commit 1c8f0b526d0112c05c91b69a77081ec361da538c)
2013-10-16 21:26:01 -04:00
Leo Franchi
de3033abb3
Add support for discussion comments in Codebase mirror
...
(imported from commit 9b37cbf4209ad607966053af9c1ef9979c2d6205)
2013-10-15 09:38:38 -04:00
Zev Benjamin
dac447d14e
codebase: Truncate subjects to 60 characters
...
(imported from commit db5ba1a8af80f2060aec03b3ba1d9e0f3e75c0b3)
2013-10-08 18:54:03 -04:00
Zev Benjamin
b26c47ee5e
codebase: Fix URLs
...
(imported from commit 664de2e6ad78d07498c7ad8813049d1e07c5b379)
2013-10-08 18:53:42 -04:00
Tim Abbott
c2fb80c282
git integration: Linkify our commits to point to GitLab.
...
(imported from commit e8d3c107842680dec9bc6aa84f9548c0f879785d)
2013-10-08 17:21:57 -04:00
Steve Howell
6f40a58898
Have Jira Groovy client send client=jira-groovy to our API.
...
(imported from commit 9186c5a8ac9ac910e914eaa342040f595b38a052)
2013-10-02 15:28:36 -04:00
Leo Franchi
14a0228557
Move RSS and Twitter bots to integrations/
...
(imported from commit a8105d5161eae6708d6322037cd6a45bef237050)
2013-10-02 11:37:05 -04:00
Leo Franchi
6b920ae9ad
Add a Codebase integration
...
(imported from commit d1ea870cd6ac6bf5d00c03d8859d66638d3242e8)
2013-10-02 10:55:17 -04:00
Tim Abbott
096df55436
trac: Include ticket summaries in body if they were truncated.
...
(imported from commit df1bd5e765725d077cc30ce92eac8bf694145044)
2013-10-01 17:41:30 -04:00
acrefoot
8934724b26
Fixup 484bc12681a43cd01fe0189c072ab4230eb32c22 typo
...
(imported from commit ff4043b6ea0c2389560114dcda6269fd64932cd5)
2013-08-29 18:07:49 +00:00
acrefoot
5d2e155309
Basecamp mirroring script
...
This mirrors all the "events" in a Basecamp account onto a stream in Zulip
(default "basecamp"); it sets the topic as the calendar or project that the
event belongs to.
Unfortunately, Basecamp will not host hooks, and neither do we, so this script
is currently intended to be run by our customers, much like the Trello mirror.
(imported from commit 484bc12681a43cd01fe0189c072ab4230eb32c22)
2013-08-30 20:00:07 +00:00
Steve Howell
50cdc6853d
Send the full first line of the commit message to Zulip.
...
(imported from commit accafb1cd2fa64ad1377d0fc72ff8f89c1806d3b)
2013-08-09 10:45:20 -04:00
Tim Abbott
bd133f6bd4
Rename /usr/local/share/humbug/ to /usr/local/share/zulip/.
...
(imported from commit 6b5d13b36f96c7174e70ce1391f1d66724c45a62)
2013-08-08 10:22:32 -04:00
Tim Abbott
a372fba2ac
Rename Humbug-based variables/paths in jira plugin.
...
(imported from commit a4596acc5c2d8da5cecad772e9cda5a371189299)
2013-08-08 10:22:31 -04:00
Tim Abbott
b90a936910
Rename Humbug-based variables/paths in svn plugin.
...
(imported from commit 43a9282ad86546fb59e91c36e97a595e51789d07)
2013-08-08 10:22:31 -04:00
Tim Abbott
f36c132578
Rename Humbug-based variables/paths in git plugin.
...
(imported from commit e153c7a1a68e82dd3fa45251644be74c62770a9d)
2013-08-08 10:22:31 -04:00
Tim Abbott
318ba3a50e
Rename Humbug-based variables/paths in Nagios plugin.
...
(imported from commit fe8e33241215ea880f7351c3c86b0fb546faf8d3)
2013-08-08 10:22:31 -04:00
Tim Abbott
0c3eba5331
Rename Humbug-based variables in Trac plugin.
...
(imported from commit 5d406cb6c5fe7b1fbd4da706f7ac6bb6e381cadb)
2013-08-08 10:22:31 -04:00
Tim Abbott
4611b40b12
Rename humbug_*_config.py to zulip_*_config.py.
...
(imported from commit a1d4dd22c59f812f0eb4875dc70c89ce96a4b90c)
2013-08-08 10:22:31 -04:00
Tim Abbott
084847b0d7
Rename the 'humbug' API module to 'zulip'.
...
(imported from commit b3a3d7c05459cbb0110cd0fbe2197d779f3a6264)
2013-08-08 10:22:31 -04:00
Tim Abbott
9aaefde9b2
Rename ~/.humbugrc to ~/.zuliprc.
...
(imported from commit a0d53dd20097a56971874dc1d84c6f95267e84f2)
2013-08-08 10:22:31 -04:00
Tim Abbott
4cd4c6897b
Change Humbug => Zulip in text/comments.
...
(imported from commit 2f9d73431ae40e1b9e9e11bc2f4f62f566ae758a)
2013-08-07 10:00:07 -04:00
Tim Abbott
22e5a15bc4
[manual] Use api.zulip.com to access the Humbug API.
...
This needs to be deployed after the nginx configuration is deployed.
(imported from commit 167a3d9d27595d40883bb400ebcc44c4ad9b6a2f)
2013-07-25 17:27:46 -04:00
Tim Abbott
5e2979b870
[manual] Change API URLs to be based on api.humbughq.com/api.
...
This must be deployed after we update our running nginx configuration
to serve api.humbughq.com.
(imported from commit b5c34ebdd595f55eecd6dca6a18a37f105107bd5)
2013-06-28 15:57:27 -04:00
Scott Feeney
360d78e9a2
Remove unused imports
...
(imported from commit 9e3050c72a2d1137b9096c6cfa1c3945341b9a56)
2013-06-27 16:22:39 -04:00
acrefoot
dfb8a16a55
[api version bump] Update API documentation in the example scripts
...
Give better examples, and rewrite options parsing to be more consistent across examples.
Make it more obvious that you can use "--user" and "--api-key" with our python examples.
This bumps our python bindings to v0.1.9
(imported from commit 297468088f864b7d585e567dc45523ea681f1856)
2013-06-05 17:34:41 -04:00