Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
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

Closed

Description

@charlieok

I love the “custom routing” feature in https://github.com/settings/notifications , which allows me to configure notification email addresses depending on which organization owns a repository.

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.

Activity

  1. briankereszturi commented on Feb 24, 2014

    @briankereszturi
  2. UrsaDK commented on Feb 25, 2014

    @UrsaDK
  3. partydrone commented on Nov 13, 2014

    @partydrone
  4. ghallberg commented on Nov 14, 2014

    @ghallberg

    I have exactly this issue, would be great to see this changed.

  5. kenwarner commented on Nov 17, 2014

    @kenwarner
  6. eloraburns commented on Jan 16, 2015

    @eloraburns

    👍

  7. fstehle commented on Jan 19, 2015

    @fstehle

    👍

  8. yoyko commented on Feb 25, 2015

    @yoyko

    +1

  9. minterior commented on Feb 27, 2015

    @minterior

    +1

  10. dpcat237 commented on Feb 27, 2015

    @dpcat237

    👍

  11. egcastro commented on Feb 27, 2015

    @egcastro

    +1

  12. jonmoter commented on Mar 6, 2015

    @jonmoter

    +1

  13. muniere commented on Mar 27, 2015

    @muniere

    +1

  14. vitalii-c commented on Mar 30, 2015

    @vitalii-c

    +1

  15. AlexOverbeck commented on Apr 30, 2015

    @AlexOverbeck

    +1

  16. 70 remaining items

  17. clarkbw commented on Apr 25, 2019

    @clarkbw
    Collaborator

    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/

  18. nycgavin commented on Apr 25, 2019

    @nycgavin

    Thank you for doing this!

  19. DrLeh commented on May 2, 2019

    @DrLeh

    @benbalter

    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

  20. garretwilson commented on May 2, 2019

    @garretwilson

    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!

  21. Kaapelikala commented on May 7, 2019

    @Kaapelikala

    Thank you for this! Makes working for several different organisations much easier without the need to change global settings all the time.

  22. gallexi commented on May 7, 2019

    @gallexi

    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 =]

  23. DrLeh commented on May 8, 2019

    @DrLeh

    @gallexi yeah it's not working for me. I have two emails configured A and B

    1. Open PR 1, email dropdown is set to B.
    2. Change email dropdown to A, my desired email for this project
    3. Merge the code via a Squash and Merge
    4. Open PR 2, email dropdown is still set to B.
  24. benbalter commented on May 9, 2019

    @benbalter

    @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:

    1. When after merging, commits are pushed to any branch using a different email.
    2. 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.

    /cx todogroup/gh-issues#32 for a similar discussion.

  25. DrLeh commented on May 9, 2019

    @DrLeh

    @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!

  26. glenpike commented on May 10, 2019

    @glenpike

    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).

  27. jlevon commented on Jan 28, 2020

    @jlevon

    This doesn't work when doing a (squash) merge via the API

  28. StefanoFioravanzo commented on Feb 9, 2020

    @StefanoFioravanzo

    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.

  29. Sequoia commented on Mar 5, 2020

    @Sequoia

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions