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
{{ message }}
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Associate email address with organization for author field on new commits #95
The problem I'm having is that this is restricted to outgoing notification emails. I'd like to take this association farther. Specifically, to the author email on commits generated via Github's browser interface.
Our workflow involves merging story branches into master (or other long-running branches) inside Github, when the merge button is green. If I do this however, the merge commit doesn't get my email address for that organization. Instead, it gets my primary email address. This affects other applications integrated with git/github. For example, it affects Travis CI, which sends build success or failure emails to my personal email address instead of my organization email address.
Reacted by Ivan Mesic, Iegor Azuaga, Nate Pinchot, TPS, A. Jesse Jiryu Davis, Richard Strand, Jonathan Balsano, Scott Robbins, Chris Tomlinson, Neil Pankey and 316 more
Thanks for the all the feedback! If you have concerns or find bugs leave them here and contact support. If there are followup features you'd like to see please open a new issue and tag this one.
the drop down will default to the last email you used to commit to the repo, defaulting to your organization notification email if this is your first commit, meaning ideally, it should default to the email you'd like to use for the repo, or will after your first use, without needing to manage an additional setting.
It seems to always be defaulting to my first email, I'm having to change it every time. If I push a commit directly (aka not through a PR), is it associating to my first email instead and resetting this? Would be nice if there was a way to just configure this for my repo and force a value to be the default
I think ideally it would be nice to be able to set the email address on a per-project basis …
After I suggested that (noting that this is already available in Git locally), I realized that the more important thing would be to associated the email with the organization itself, or at least specify a default for each organization. And now I realize that this is exactly what this ticket originally requested! 😆 So good work, but let's not forget semantics. Thank you!
If I push a commit directly (aka not through a PR), is it associating to my first email instead and resetting this?
@DrLeh if you commit to a repository via any means (make a commit locally and push to the repo on GitHub, or make a commit through the online editor), the email used to make that commit will be the one that these features default to next time.
Hope this helps! If you're still experiencing this issue, please feel free to reach out to GitHub Support so we can investigate this further =]
@DrLeh Had a chance to dig into this a bit more and wanted to share two scenarios where I believe the drop down may not reflect the last email used in the drop down:
When after merging, commits are pushed to any branch using a different email.
When squash merging another user's pull request
The reason for both is that we look for the most recent commit, on any branch, that you authored.
If you've authored other commits since the last merge via the web interface using another email, those commits will override the preference.
Similarly, if you squash merge another user's pull request, the actor is set as the committer and the PR author is set as the commit author (for proper attribution), in which case the email you selected via the dropdown for that squash merge (of another user's pull request) would not be preserved and it would default to your most recent authored commit or your per-organization notification email, if set.
@benbalter I figured that might be the case. I tried doing a merge commit instead of a squash and that fixed it, I didn't get a chance to respond here yet. Thanks!
Please can we have it default to the organisation's email for squash merges too?
I have a scenario where I'm the only committer of several commits in a PR and when I go to squash, it's still not defaulting to the correct default email for the organisation (even though this is the email used for each commit in the log).
Reacted by Chip Ach, Waldir Pimenta, Hoon Oh, Thomas Langé, Ricky Wong and Bradley Wilson-Hunt
I don't see the email dropdown anymore when trying yo squash or merge commit a PR! I am sure it was there a few weeks ago, but now I am not prompted with the drop down anymore. I am committing PRs that I have authored with my organisation address, but they now appear with my personal address when squashed.
Reacted by Segev Finer, Michał Czapliński, Patryk Goworowski, Brendan Roy, Makar Ermokhin, Hoon Oh, Thomas Langé, Alex Kozin, Ben Larson, Fred Thomsen and 1 more
Will try to repro but I am fairly certain my github UI keeps defaulting back to my main (personal) email. At work I merge PRs 5-10 times/week, I have been doing no side-projects at all lately so I know I've never set it back to my personal email. I have definitely set it to my work email (upon clicking "squash and merge") several times and never set it back to my personal email. I keep getting personal email selected.
Activity
briankereszturi commentedon Feb 24, 2014
UrsaDK commentedon Feb 25, 2014
partydrone commentedon Nov 13, 2014
ghallberg commentedon Nov 14, 2014
I have exactly this issue, would be great to see this changed.
kenwarner commentedon Nov 17, 2014
eloraburns commentedon Jan 16, 2015
👍
fstehle commentedon Jan 19, 2015
👍
yoyko commentedon Feb 25, 2015
+1
minterior commentedon Feb 27, 2015
+1
dpcat237 commentedon Feb 27, 2015
👍
egcastro commentedon Feb 27, 2015
+1
jonmoter commentedon Mar 6, 2015
+1
muniere commentedon Mar 27, 2015
+1
vitalii-c commentedon Mar 30, 2015
+1
AlexOverbeck commentedon Apr 30, 2015
+1
70 remaining items
clarkbw commentedon Apr 25, 2019
Thanks for the all the feedback! If you have concerns or find bugs leave them here and contact support. If there are followup features you'd like to see please open a new issue and tag this one.
🚢 https://github.blog/changelog/2019-04-24-choose-your-merge-commit-email/
nycgavin commentedon Apr 25, 2019
Thank you for doing this!
DrLeh commentedon May 2, 2019
@benbalter
It seems to always be defaulting to my first email, I'm having to change it every time. If I push a commit directly (aka not through a PR), is it associating to my first email instead and resetting this? Would be nice if there was a way to just configure this for my repo and force a value to be the default
garretwilson commentedon May 2, 2019
After I suggested that (noting that this is already available in Git locally), I realized that the more important thing would be to associated the email with the organization itself, or at least specify a default for each organization. And now I realize that this is exactly what this ticket originally requested! 😆 So good work, but let's not forget semantics. Thank you!
Kaapelikala commentedon May 7, 2019
Thank you for this! Makes working for several different organisations much easier without the need to change global settings all the time.
gallexi commentedon May 7, 2019
@DrLeh if you commit to a repository via any means (make a commit locally and push to the repo on GitHub, or make a commit through the online editor), the email used to make that commit will be the one that these features default to next time.
Hope this helps! If you're still experiencing this issue, please feel free to reach out to GitHub Support so we can investigate this further =]
DrLeh commentedon May 8, 2019
@gallexi yeah it's not working for me. I have two emails configured A and B
benbalter commentedon May 9, 2019
@DrLeh Had a chance to dig into this a bit more and wanted to share two scenarios where I believe the drop down may not reflect the last email used in the drop down:
The reason for both is that we look for the most recent commit, on any branch, that you authored.
If you've authored other commits since the last merge via the web interface using another email, those commits will override the preference.
Similarly, if you squash merge another user's pull request, the actor is set as the committer and the PR author is set as the commit author (for proper attribution), in which case the email you selected via the dropdown for that squash merge (of another user's pull request) would not be preserved and it would default to your most recent authored commit or your per-organization notification email, if set.
/cx todogroup/gh-issues#32 for a similar discussion.
DrLeh commentedon May 9, 2019
@benbalter I figured that might be the case. I tried doing a merge commit instead of a squash and that fixed it, I didn't get a chance to respond here yet. Thanks!
glenpike commentedon May 10, 2019
Please can we have it default to the organisation's email for squash merges too?
I have a scenario where I'm the only committer of several commits in a PR and when I go to squash, it's still not defaulting to the correct default email for the organisation (even though this is the email used for each commit in the log).
jlevon commentedon Jan 28, 2020
This doesn't work when doing a (squash) merge via the API
StefanoFioravanzo commentedon Feb 9, 2020
I don't see the email dropdown anymore when trying yo squash or merge commit a PR! I am sure it was there a few weeks ago, but now I am not prompted with the drop down anymore. I am committing PRs that I have authored with my organisation address, but they now appear with my personal address when squashed.
Sequoia commentedon Mar 5, 2020
Will try to repro but I am fairly certain my github UI keeps defaulting back to my main (personal) email. At work I merge PRs 5-10 times/week, I have been doing no side-projects at all lately so I know I've never set it back to my personal email. I have definitely set it to my work email (upon clicking "squash and merge") several times and never set it back to my personal email. I keep getting personal email selected.