GitHub commit emailer - email

I want to send email to all the developers for every commit made in repository. I have explored GitHub default email service but its not useful as it does not include code diff of the commit. Is there any other way to send out coloured html formatted email for every commit push to the server.

Since the GitHub email notification service isn't enough, you can use a simple git push webhook, and listen to it.
On a server set to listen to that push event, do a git fetch, and for each commit, generate an html page with the colored diff content.
Then send the email from that server with the right content.

Related

How to set a hidden back-up email on Github?

I have a public email I use for git commits and I am trying to figure out if it's possible to add a hidden backup email to my account without having it be exposed.
See the Setting a backup email address section of the Github docs.
Use a backup email address as an additional destination for security-relevant account notifications and to securely reset your password if you can no longer access your primary email address.
This should, of course, be different from the emails you use for commits. From your profile, go to the Emails section, add a new email address and select it from the dropdown of the Backup email address section.
In addition, you may want to also check the Keep my email addresses private option to hide your email "when performing web-based Git operations (e.g. edits and merges) and sending email on your behalf."

How to change recipient of GitHub Action failure notification email?

If a GitHub repo has a GitHub action added, and that action fails, GitHub sends an automated email indicating that failure. How can I change the recipient of that email?
Background
My GitHub profile has my personal email address set as the primary email address, and my work email address added as a secondary. In my work's GitHub account I've created a new GitHub repo--one with a GitHub action that executes whenever a push occurs to the GitHub repo. GitHub settings are such that, when a push occurs and the action fails, GitHub sends an automated email indicating the failure. The problem is, when I push from my Git user (using my work email address) and the GitHub action fails, that email is sent to my personal email address, rather than my work email address. Both my work and I would like to keep all work-related email out of my personal email, if possible.
I'm not sure if the email is being sent to me because I created the repo, because I created the action, or because I initiated the push.
I realize I can additional recipients to this notification email, but that's not what I want right now.
Possible Solutions
Ideally, I'd like to change the recipient of these emails to any recipient(s) I want. Is that possible? If so, how would I approach that?
As a fallback, is there a way to simply change the recipient of these emails to my work email address, rather than my personal email address?
What I've Tried So Far
I've asked GitHub support about this, but haven't received a reply.
Check Settings: In my work repo, I don't seem to have permissions to check the settings of this repo. But I created a similar repo in my personal GitHub account, and was able to check its settings. There is a ‘Notifications’ section and an ‘Actions’ section. But nothing in either allows me to do what I want.
Thanks.
This worked for me
In your Github profile notification settings: https://github.com/settings/notifications
You can set the default notification email to one of those which are configured on your account.
Here is an example
There is also an interesting section in your case: Choosing where your organization’s email notifications are sent, in the Github Documentation that give more details about this.

Will changing my GitHub username update/remove attributions using the noreply email

If I change my username on GitHub, will my contributions still show commits from merged pull requests that are listed as using the email 123456+username#users.noreply.github.com? On the GitHub website it says
Git commits that were associated with your GitHub-provided noreply email address won't be attributed to your new username and won't appear in your contributions graph. If your Git commits are associated with another email address you've added to your GitHub account, including the ID-based GitHub-provided noreply email address, they'll continue to be attributed to you and appear in your contributions graph after you've changed your username.
I'm not really sure what that means, it seems contradictory to me. The commits I am concerned with were made from pull requests via GitHub's "Squash and merge" on the website (my requests merged by somebody else as well as somebody else's requests merged by me) and show up as 123456+username#users.noreply.github.com because I have email privacy enabled in account settings. I thought maybe it meant that you have to manually add the noreply email to your email addresses on the Email settings on GitHub, but doing this gives the message Error adding 123456+username#users.noreply.github.com: email is already in use.
I found the answer at https://help.github.com/en/github/setting-up-and-managing-your-github-user-account/setting-your-commit-email-address
Note: If you created your GitHub account after July 18, 2017, your GitHub-provided no-reply email address is a seven-digit ID number and your username in the form of ID+username#users.noreply.github.com. If you created your GitHub account prior to July 18, 2017, your GitHub-provided no-reply email address is your username in the form of username#users.noreply.github.com. You can get an ID-based GitHub-provided no-reply email address by selecting (or deselecting and reselecting) Keep my email address private in your email settings.
I think this is what I wanted - if you have the ID number at the start of the email then it is migrated with your account. This is confirmed further down the page:
If you use your GitHub-provided noreply email address to make commits and then change your username, those commits will not be associated with your GitHub account. This does not apply if you're using the ID-based GitHub-provided noreply address.
So the commits will remain as normal as long as your email has the ID at the start.

How to make github send cummulative comments for pull request?

When commenting on code changes in github pull request it sends mail notification for every comment. Is there a way to make it wait and send all comments in one mail when I'm done with review?

ftp upload tool which sends an email

I'm looking at incorporating an simple ftp upload tool on the site that will enable clients to select the branch they want to send it to who is turn would get an email to notify them of the upload and instructions.
Do you have any suggestions?