If it's possible to support in GH, I would like to see diffs (unified) in PRs and commit emails. While it increases the size of the emails, I think it would be a huge productivity increase. Without the diffs, I have to stop and click on a link in my email, then go to my browser, just to see if the change is anything I can or want to comment on.
If the diffs were in my email notifications, I could do a quick review immediately. By scanning the email I could:
I only want to go to the GH web ui when I really need to interact with the PR or commit, and that should be a minority of changes to Python.
+1. I was going to open an issue for this :) Unfortunately it's not possible to include diffs in the email integration of GitHub. I can write a webhook to include diffs if we all want to see diffs in python-checkins emails.
On Feb 11, 2017, at 06:05 AM, Berker Peksag wrote:
+1. I was going to open an issue for this :) Unfortunately it's not possible
to include diffs in the email integration of GitHub. I can write a webhook to
include diffs if we all want to see diffs in python-checkins emails.
+1 for the latter. Maybe we can submit a GH feature request for the former.
Here's an example email:
https://github.com/fayton/cpython/commit/2d420b342509e6c2b597af82ea74c4cbb13e2abd
commit: 2d420b342509e6c2b597af82ea74c4cbb13e2abd
branch: refs/heads/3.5
author: cbiggles <[email protected]>
committer: Berker Peksag <[email protected]>
date: 2017-02-08T15:37:50+03:00
summary:
Update .gitignore
(cherry picked from commit 9d9ed0e5cceef45fd63dc1f7b3fe6e695da16e83)
files:
M .gitignore
diff --git a/.gitignore b/.gitignore
index c2b4fc7..e0d0685 100644
--- a/.gitignore
+++ b/.gitignore
@@ -93,3 +93,4 @@ htmlcov/
Tools/msi/obj
Tools/ssl/amd64
Tools/ssl/win32
+foo
Differences with the Mercurial emails:
Diff stats are not included:
files:
M .gitignore
instead of
files:
Lib/test/test_gdb.py | 24 +++++++-----------------
1 files changed, 7 insertions(+), 17 deletions(-)
committer informationI've just finished the first version of the webhook: https://github.com/berkerpeksag/cpython-emailer-webhook
Would it be too difficult to add a call to git diff --stat with the appropriate tweaks for readability?
A call to git diff would require a clone of python/cpython. Current version of the webhook only uses GitHub API.
This can be closed now. With help of the infra team and Brett, it's now up! See https://mail.python.org/pipermail/python-checkins/2017-July/151274.html for an example email.
Most helpful comment
This can be closed now. With help of the infra team and Brett, it's now up! See https://mail.python.org/pipermail/python-checkins/2017-July/151274.html for an example email.