You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Decide that I don't care about this change, delete it and move on
Make a quick determination that the change looks good and do a quick +1 turnaround
See some changes that I have questions or concerns about but defer my response to when I have sufficient time
Have a quick comment about a change which I could send in a quick reply
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.
Activity
berkerpeksag commentedon Feb 11, 2017
+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.
warsaw commentedon Feb 11, 2017
berkerpeksag commentedon Feb 11, 2017
Here's an example email:
Differences with the Mercurial emails:
Diff stats are not included:
instead of
Added
committerinformationberkerpeksag commentedon Feb 12, 2017
I've just finished the first version of the webhook: https://github.com/berkerpeksag/cpython-emailer-webhook
warsaw commentedon Feb 13, 2017
Would it be too difficult to add a call to
git diff --statwith the appropriate tweaks for readability?berkerpeksag commentedon Feb 13, 2017
A call to
git diffwould require a clone of python/cpython. Current version of the webhook only uses GitHub API.berkerpeksag commentedon Jul 21, 2017
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.