Eeshan Garg
ffdd5d3588
webhooks: Don't display "Commits by" when committer is the only author.
...
For our Git integrations, we now only display the number of commits
pushed when the pusher also happens to be the only author of the
commits being pushed.
Part of #3968 .
Follow-up to #4006 .
2017-04-26 18:26:09 -02:30
Eeshan Garg
b7ca533315
webhooks: Add a space between author and number of commits for Git messages.
...
For Git push messages, we now have a single space character between
the name of a commit's author and the number of commits by that
author, plus a period at the end.
Part of #3968 .
Follow-up to #4006 .
2017-04-26 18:26:09 -02:30
Tim Abbott
e7974b3b65
git: Fix nondeterministic ordering of commit authors.
...
This should fix the nondeterministic test failures introduced by
e7455e276b
.
2017-04-21 11:45:30 -07:00
Siddharth Mahapatra
e7455e276b
git integrations: Expand details in commit push notifications.
...
We now show a few new things:
(1) The number of commits pushed.
(2) Who authored the commits (just counts, not which specific ones, for brevity).
Add tests for case of multiple committers.
Part of #3968 .
2017-04-21 11:07:44 -07:00
Akash Kothawale
9c5f1d2239
git.py: Add create branch event message.
2017-03-17 12:22:06 -07:00
Akash Kothawale
282d27a934
git.py: Add setup webhook message.
2017-03-17 11:44:01 -07:00
wizsid11
19d1f4cab7
git integration: Change push commits message to show url at the end.
2017-03-16 11:06:03 -07:00
wizsid11
f066e3e8d6
git integrations: Change the limit of shown commits from 10 to 20.
2017-03-14 13:24:45 -07:00
Raghav Jajodia
a3a03bd6a5
mypy: Added Dict, List and Set imports.
...
Fixed mypy errors associated with the upgrade.
2017-03-04 14:33:44 -08:00
Mikebarson
690d72d35f
mypy: Convert more zerver/lib files to typing.Text.
...
This commit touches files in zerver/lib/bugdown/ and
zerver/lib/webhooks.
2016-12-05 21:17:24 -08:00
Tomasz Kolek
074571dddc
Fix English grammar in push/remove tag message.
2016-11-15 10:48:12 -08:00
Tomasz Kolek
ed1d7f7997
Add is_truncated param to git integrations push commits event.
...
Add is_truncated param for cases when we know that there were more commits
but we dont know actual number and want just inform about existing of the rest.
2016-11-11 15:36:45 -08:00
Tomasz Kolek
6be27a1396
Add get_push_tag_event_message function to git integrations common (git.py).
2016-11-11 15:36:45 -08:00
Tomasz Kolek
4dd8cd9879
Replace "Commit" to commits sha in commits comment events in git integrations.
2016-11-02 22:19:51 -07:00
Tomasz Kolek
6ad4cce35c
Add object number/id to mention about Issue, PR, etc. to all git integrations.
2016-11-02 22:19:51 -07:00
Tomasz Kolek
89d53a0640
Change name of PR subject template to be applicable for issues.
2016-10-20 23:15:30 -07:00
Tomasz Kolek
289f400c8c
Add git integrations method to build message for issues events.
2016-10-20 23:15:30 -07:00
Tomasz Kolek
2941c1f517
Move converting commits data to text to separate function.
...
Create get_commits_content function for converting
commits list to text.
2016-10-14 16:54:13 -07:00
Tomasz Kolek
d2cedd3667
Rename consts in lib/webhooks/git.py to make it more general.
...
Rename:
PUSH_COMMITS_LIMIT to COMMITS_LIMIT
PUSH_COMMIT_ROW_TEMPLATE to COMMIT_ROW_TEMPLATE
PUSH_COMMITS_MORE_THAN_LIMIT_TEMPLATE to COMMITS_MORE_THAN_LIMIT_TEMPLATE
2016-10-14 16:54:13 -07:00
Tomasz Kolek
ee70cc5141
Add git integration method to build message for pull requests events.
2016-10-14 16:54:13 -07:00
Tomasz Kolek
312905007e
Add EMPTY_SHA const to zerver/lib/webhooks/git.py.
2016-10-10 17:39:05 -07:00
Tomasz Kolek
b69b5e55ce
Add git integration method to build message for remove branch events.
...
Add get_remove_branch_event_message method to zerver/lib/webhooks/git.py
for normalizing remove branch message in all git integrations.
2016-10-10 17:39:05 -07:00
Tomasz Kolek
5f7c1519d1
Add git integration method to build message for force push events.
...
Add get_force_push_commits_event_message method to zerver/lib/webhooks/git.py
for normalizing force push message in all git integrations.
2016-10-10 17:39:05 -07:00
Tomasz Kolek
32934a02e9
Add template for subject that contains repo name and branch name.
2016-10-10 17:39:05 -07:00
Tomasz Kolek
8697a1e5a2
Add common git integration method to build message for push events.
...
This adds get_push_commits_event_message method to
zerver/lib/webhooks/git.py for normalizing push messages in all git
integrations.
2016-10-10 17:32:41 -07:00