picapi_
3fb9803398
mypy: Use Python 3 type syntax in zerver/webhooks/teamcity/view.py.
2017-12-11 20:27:55 -08:00
Ivche1337
1d202e30d8
integrations: Add webhook payloads for Opbeat.
2017-12-11 15:40:49 -06:00
Rishi Gupta
4eb3202b13
integrations: Remove weather example from zapier doc.
...
I don't think it made the page more readable, and doubled the length.
2017-12-11 15:39:26 -06:00
Arseny Chekanov
1f34300006
mypy: Use Python 3 type syntax in zerver/webhooks/trello/tests.py.
2017-12-09 16:50:12 -08:00
Xavier Cooney
a6465e8e35
mypy: Use Python 3 syntax in zapier/view.py.
2017-12-08 18:34:26 -08:00
Xavier Cooney
1262d14d39
mypy: Use Python 3 syntax in gci/view.py.
2017-12-08 18:34:26 -08:00
Xavier Cooney
38e65570ae
mypy: Use Python 3 syntax for typing in heroku/view.py.
2017-12-08 18:34:26 -08:00
picapi_
5febd177cf
mypy: Use Python 3 type syntax in zerver/webhooks/newrelic/view.py.
2017-12-05 16:32:18 -08:00
picapi_
d55d680758
mypy: Use Python 3 type syntax in zerver/webhooks/homeassistant/view.py.
2017-12-05 16:32:18 -08:00
picapi_
c2ef7e7ce5
mypy: Use Python 3 type syntax in zerver/webhooks/freshdesk/view.py.
2017-12-05 16:32:18 -08:00
picapi_
67773a4b84
mypy: Use Python 3 type syntax in zerver/webhooks/semaphore/view.py.
2017-12-03 13:48:18 -08:00
derAnfaenger
6dd639454e
integrations: Add topic parameter for Appfollow.
...
Tweaked by tabbott to document the integration.
2017-11-28 15:49:19 -08:00
Tim Abbott
d5bb45db60
webhooks/gci: Fix missing mypy annotation.
2017-11-28 14:08:44 -08:00
Sampriti Panda
bea653fabc
webhooks/gci: Improve message formatting.
...
* Use Student Name instead of Task Name in subject.
* Use Task Instance URL instead of Task Definition URL (and workaround
for a bug in the API).
2017-11-28 13:53:42 -08:00
Eeshan Garg
5b8f38f4e3
webhooks/bitbucket2: Ignore push events with no changes.
...
We now ignore payloads where payload['push']['changes'] is empty,
because an empty push doesn't really convey any useful information.
I couldn't find a way to replicate the action that would generate
such a payload, so I took one of our existing payloads and editted
out payload['push']['changes'] myself, so this payload is not
authentic.
2017-11-26 17:03:07 -08:00
Eeshan Garg
23162a1433
github_webhook: Use indented Markdown macros.
2017-11-25 17:01:11 -08:00
Eeshan Garg
1dca7cc367
webhooks/beanstalk: Use indented Markdown macros.
2017-11-25 17:01:11 -08:00
rht
5f6dbe6226
fixtures: replace optparse example with argparse.
2017-11-21 21:23:41 -08:00
Eeshan Garg
02a32e246e
webhooks/gitlab: Support test payloads without an "action" attribute.
...
Payloads that don't have a payload['object_attributes']['action']
attribute are generated when GitLab sends a test payload to verify
if the webhook was set up successfully. In this case, we should
send a message notifying that the webhook was configured
successfully.
2017-11-19 20:56:10 -08:00
Tim Abbott
73a668e7ae
python: Sort imports in webhooks.
2017-11-15 15:43:10 -08:00
rht
bafba95eb7
Text-wrap the remaining long lines exceeding 110.
2017-11-15 10:58:03 -08:00
Tommy Ip
8480deb754
integration docs: Fix broken desk.com markdown.
2017-11-10 17:33:42 +00:00
Tommy Ip
325ca0df62
integration docs: Fix broken Stripe markdown.
...
More information: https://chat.zulip.org/#narrow/stream/issues/topic/.237336
2017-11-10 17:19:52 +00:00
Tommy Ip
7477fbb14e
docs: Remove dangling </p> tag.
...
Fixes #7336
2017-11-09 14:39:40 -08:00
rht
bb46bea44d
Remove usage of six.moves.text_type.
2017-11-09 10:00:00 -08:00
rht
04eaec64f0
zerver/webhooks: Text-wrap long lines exceeding 110.
2017-11-07 17:24:09 -08:00
neiljp (Neil Pilgrim)
d038bf89ac
mypy: Adjust pivotal/view.py function parameter type based on body.
2017-11-07 11:26:46 -08:00
rht
549a26860f
refactor: Remove six.moves.range import.
2017-11-07 10:46:42 -08:00
rht
ec5120e807
refactor: Remove six.moves.zip import.
2017-11-07 10:46:42 -08:00
rht
19bd335cbb
Change urllib import to be Python 3-specific.
2017-11-07 10:46:42 -08:00
rht
8990b1046d
zerver: Remove inheritance from object.
2017-11-06 08:53:48 -08:00
neiljp (Neil Pilgrim)
42f5eea61f
mypy: Improve typing of request.pyi (REQ).
...
This expands request.pyi to type-check the arguments passed into REQ.
Tweaked by tabbott to fix the report.py annotations.
2017-11-04 20:26:03 -07:00
neiljp (Neil Pilgrim)
720df640e7
mypy: Set freshdesk TicketDict to inherit from typed Dict.
2017-11-04 19:47:45 -07:00
rht
969cc506d2
zerver/webhooks: Use python 3 syntax for typing.
...
Tweaked by tabbott to fix various line-wrapping issues.
2017-11-04 19:40:32 -07:00
Eeshan Garg
aaaed74c3d
webhooks: Import REQ, has_request_variables from zerver.lib.request.
...
We now import REQ and has_request_variables from zerver.lib.request,
which is where these methods are defined.
Fixes #7195 .
2017-11-02 14:40:55 -07:00
Eeshan Garg
20f3e9b779
webhooks/gci: Support 'needswork' event_type.
...
This commit adds support for payloads that are generated when a
mentor submits a task for more work.
2017-11-02 16:46:11 -02:30
Eeshan Garg
9969a3a40b
webhooks/gci: Replace 'type' -> 'event_type', 'uuid' -> 'id'.
2017-11-02 16:39:48 -02:30
neiljp (Neil Pilgrim)
7d8de37299
mypy: Specify librato Callable type.
2017-10-31 00:03:35 -07:00
Greg Price
eb55a3a1ba
template context: Give better names to the URLs for the API.
...
The "subdomain" label is redundant, to the extent it's even
accurate -- this is really just the URL we want to display,
which may or may not involve a subdomain. Similarly "external".
The former `external_api_path_subdomain` was never a path -- it's a
host, followed by a path, which together form a scheme-relative URL.
I'm not quite convinced that value is actually the right thing in
2 of the 3 places we use it, but fixing that can start by giving an
accurate name to the thing we have.
2017-10-30 18:29:29 -07:00
rht
c4fcff7178
refactor: Replace super(.*self) with Python 3-specific super().
...
We change all the instances except for the `test_helpers.py`
TimeTrackingCursor monkey-patching, which actually needs to specify
the base class.
2017-10-30 14:30:25 -07:00
Steve Howell
655f37a34b
Rename subject_name in send_message_backend().
2017-10-27 10:48:11 -07:00
Tim Abbott
8e2cdedf9a
lint: Fix lines in Python codebase longer than 120 characters.
2017-10-26 17:47:30 -07:00
Tim Abbott
b936e8c24b
lint: Fix lines in Python codebase longer than 125 characters.
2017-10-26 17:36:54 -07:00
Tim Abbott
be619fe881
lint: Wrap many very long lines in the Python codebase.
...
This decreases the maximum line length in our Python codebase to 130.
2017-10-26 17:31:58 -07:00
Eeshan Garg
bd814eea2b
webhooks/taiga: Support relateduserstory events.
...
This commit adds support for the following:
1. When a user story is added to an epic.
2. When a user story is removed from an epic.
2017-10-25 10:59:58 -07:00
Eeshan Garg
f8b5976335
webhooks/taiga: Support Epic events.
2017-10-23 11:09:43 -07:00
derAnfaenger
cfadb43b93
codebase: Remove multiple whitespaces after comma.
2017-10-18 10:04:23 -07:00
Eeshan Garg
fb17481a7f
webhooks/gci: Support claim, comment, submit, approve event types.
2017-10-16 22:01:19 -07:00
neiljp (Neil Pilgrim)
fc947d92e2
mypy: Improve return type in bitbucket2 webhook function.
2017-10-11 12:16:50 -07:00
Eeshan Garg
71eee35bce
webhooks: Add a Google Code-in integration.
2017-10-09 09:04:39 -07:00
Tim Abbott
e3c395f247
webhooks: Remove use of get_user_profile_by_email.
...
This function is deprecated.
2017-10-02 15:28:44 -07:00
Eeshan Garg
32bd609361
webhooks/yo: Migrate to check_send_private_message.
2017-10-02 15:27:26 -07:00
Eeshan Garg
d20b57c20d
webhooks/teamcity: Migrate to check_send_private_message.
2017-10-02 15:27:26 -07:00
derAnfaenger
d1afab7199
Replace deprecated Logging.warn calls with Logging.warning.
2017-10-02 11:11:42 +02:00
Eeshan Garg
86c2c7ad34
webhooks: Migrate to check_send_stream_message.
...
This commit migrates all webhooks to use check_send_stream_message
instead of check_send_message. The only two webhooks that still
use check_send_message are our yo and teamcity webhooks. They
both use check_send_message for private messages.
2017-09-30 17:48:55 -07:00
Eeshan Garg
da3c008872
webhooks/trello: Remove trello/view/templates.py.
...
TRELLO_MESSAGE_TEMPLATE and TRELLO_SUBJECT_TEMPLATE are
redundant. This commit removes them. Now, subjects don't end
in periods. And where a period is necessary in the message body,
one is appended at the end of the specific template for that
message.
2017-09-28 10:58:07 -07:00
Marco Matarazzo
a6b83def8f
webhooks/trello: Support updating Card descriptions.
...
We now support events that add, change or remove Trello Card
descriptions.
Minor fixes by eeshangarg.
2017-09-28 10:58:07 -07:00
Marco Matarazzo
765f8e7d41
webhooks/trello: Display Card comment's text in notifications.
...
Now, when someone makes a comment on a Trello Card, the text
of the comment is quoted in the notification.
Minor fixes by eeshangarg.
2017-09-28 10:58:07 -07:00
rht
7115a29bee
zerver/webhooks: Remove absolute_import.
2017-09-27 10:00:39 -07:00
neiljp (Neil Pilgrim)
e6daee441b
mypy: Adjust board_actions.py to allow Optional[Text] values.
2017-09-25 16:02:56 -07:00
Eeshan Garg
a041a23199
webhooks/trello: Ignore when Board background is changed.
...
I feel like getting notifications about a board's background being
changed isn't very useful information and could interrupt the flow
of other important information such as Card changes or movement,
so I think we should not support this event and
should simply ignore such payloads in the future.
2017-09-15 01:02:47 -07:00
Tim Abbott
27101ae931
trello: Use client_head wrapper in tests.
2017-08-26 13:45:27 -07:00
Tim Abbott
7d08ff69f0
tests: Remove most references to get_api_key.
...
This test helper doesn't really have value.
2017-08-24 23:30:46 -07:00
Tim Abbott
69059dcac8
tests: Clean up subscribing from webhook tests.
2017-08-24 21:37:57 -07:00
Eeshan Garg
31986d1b94
github_webhook: Update "pull_request unassigned" event fixture.
...
The older fixture for this event assumed that the "assignee" key
had a value of '{}' if no one was assigned to a PR anymore.
However, that is no longer true because testing with requestbin
showed that in the latest JSON payload for this event, the key
"assignee" now has the value of 'null' (None when converted to
Python) when a user is unassigned from a PR. The current code
didn't handle this correctly. This commit makes sure it does!
Its unclear as to whether the old fixture was simply wrong or
whether GitHub changed its payloads in any way.
2017-08-24 16:48:00 -07:00
Robert Hönig
18a080cd6c
Don't handle json payload key errors inside webhooks.
...
Fixes first part of #6213 .
2017-08-24 11:33:14 -07:00
Robert Hönig
c5f0478374
linter: Add trailing whitespace check for json files.
2017-08-15 09:28:11 -07:00
Robert Hönig
4be814fc16
integrations: Add OpsGenie integration.
2017-08-15 08:42:19 -07:00
Jack Zhang
f9b5a270d0
integrations: Remove titles from integration docs.
2017-08-10 10:21:53 -07:00
Jack Zhang
e56b060ef4
github_webhook/doc.md: Add link to deprecated Github Services integration.
2017-08-10 10:21:53 -07:00
Jack Zhang
8187b7ab57
bitbucket2/doc.md: Add link to deprecated Enterprise integration.
2017-08-10 10:21:53 -07:00
Jack Zhang
9461f2f799
docs: Update /integrations links to new pushState routes.
...
Update Email, Beanstalk, Hubot, JIRA, and Trello integrations
links.
The Hubot integrations section (/integrations#hubot-integrations)
was removed in an earlier redesign of /integrations. This commit
replaces the link with the hubot-scripts organization on
Github, which displays the comprehensive list of all integrations
available via Hubot.
Fixes #5875 .
2017-08-10 10:21:53 -07:00
neiljp (Neil Pilgrim)
82bac5ca11
Webhook: Remove duplicate trello code.
2017-08-08 15:55:09 -07:00
neiljp (Neil Pilgrim)
60baedcab9
mypy: strict-optional fixes for Trello integration.
2017-08-07 21:27:50 -07:00
Eeshan Garg
8f3e997a47
webhooks/trello: Ignore Card movement within a single list.
2017-07-26 22:22:14 -07:00
Greg Price
7cd621bc9d
webhooks/updown: Fix a JsonableError to provide a real error message.
2017-07-24 16:41:22 -07:00
Eeshan Garg
2ed7b7b6a1
webhooks/slack: Support unicode.
...
If an incoming payload contained a unicode character, it raised
a UnicodeEncodeError, because the message template was an str. Now,
the message template is unicode, so it can be formatted to include
unicode characters, should the incoming payloads contain any.
2017-07-20 10:30:03 -07:00
Eeshan Garg
c16e4c7d32
github_webhook: Support "ping" events from organization webhooks.
...
In addition to "ping" webhook payloads from repository-specific
webhooks, we now also support "ping" events from organization-wide
webhooks.
2017-07-17 10:15:28 -07:00
neiljp (Neil Pilgrim)
8611a2cafa
tidying: Combine multiple 'import typing' lines onto one line.
2017-07-16 16:43:21 -07:00
Vishnu Ks
a25ba763bf
semaphore: Remove unused get_user_profile_by_email import.
2017-07-14 13:35:43 -07:00
Vishnu Ks
795a1a5701
jira: Replace get_user_profile_by_email in view.py.
2017-07-14 13:35:43 -07:00
neiljp (Neil Pilgrim)
6cb3a2ab1a
mypy: Move type annotation in jira/view.py before general comments.
2017-07-07 10:56:33 -07:00
Kenji Okimoto
2eb6c49a89
github_webhook: Fix a typo to handle issues event properly.
...
issue -> issues in the HTTP_X_GITHUB_EVENT.
2017-06-30 10:55:01 -07:00
Sadjad Fouladi
92fefa0e7e
Fix a grammatical error in status change message.
2017-06-30 11:44:04 -04:00
Eeshan Garg
843dbbf3a1
webhooks/slack: Restructure docs to use create-stream.md macro.
2017-06-26 12:30:04 -04:00
Nick Sweeting
8e84c72acb
Add error checking to payload['previous'] for Circle.CI.
...
This webhook used to fail if there was no previous payload.
2017-06-26 08:15:07 -04:00
Rohitt Vashishtha
c802967808
webhooks/travis: Fix typos in docs.
2017-06-15 11:11:56 -07:00
Rohitt Vashishtha
d671dea29f
webhooks/yo: Migrate docs to markdown.
2017-06-15 11:10:44 -07:00
Rohitt Vashishtha
1fe58eb325
webhooks/slack: Migrate docs to markdown.
2017-06-15 11:10:44 -07:00
Eeshan Garg
2344e26b1a
webhooks/zendesk: Migrate docs to Markdown.
2017-06-14 17:42:17 -07:00
Eeshan Garg
9e77749bfc
webhooks/wordpress: Migrate docs to Markdown.
...
Markdown doesn't support tables, so I used an unordered list
instead for the HTML table at the end.
2017-06-14 17:42:17 -07:00
Eeshan Garg
4a3137be97
webhooks/taiga: Migrate docs to Markdown.
2017-06-14 17:42:17 -07:00
Eeshan Garg
1c5d0bb0fa
webhooks/semaphore: Use append-stream-name.md macro.
2017-06-14 17:42:17 -07:00
Eeshan Garg
0d611d4c8a
webhooks/stripe: Migrate docs to Markdown.
2017-06-14 17:42:17 -07:00
Eeshan Garg
b741f45408
webhooks/splunk: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
df28bb40f2
webhooks/sentry: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
84da473da5
webhooks/semaphore: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
d5fa02c7da
webhooks/pingdom: Migrate docs to Markdown.
2017-06-13 15:33:22 -07:00
Eeshan Garg
0b1296ed83
webhooks/librato: Migrate docs to Markdown.
2017-06-13 15:33:21 -07:00
Eeshan Garg
ac1ddc4dc8
webhooks/jira: Migrate docs to Markdown.
2017-06-13 15:33:21 -07:00