GitHub: deactivate notifications for one repository - email

Sorry, this is not really a development question but I don't know where to ask (SuperUser?)
I'm using my GitHub account for private and professional repositories and I'm getting about 40 email notifications a day for one repository I'm not interested in.
I tried to deactivate notifications for this repository but only found a way to deactivate notifications for new repositories.
Apart from setting up an email filter - what am I missing here?

Based on Github's site
You can configure notifications for a repository on the repository
page, or on your watching page.
and
You can customize notifications for a repository, for example, you can
choose to only be notified when updates to one or more types of events
(issues, pull request, releases, discussions) happen within a
repository, or ignore all notifications for a repository. For more
information, see "Viewing your subscriptions."
And from what I have seen: This is where you find it Enter the repo, Settings, notifications, and you have the 'Active' checkbox.

Related

How do I stop getting emails from GitHub when someone comments on my commit?

I managed to do this on GitHub by unwatching repos, but if I use git push then it still sends me emails.
Your email notifications for pushes to your repository is on most probably. You can turn off that, for doing this you can do the followings:
On GitHub, navigate to the main page of the repository.
Under your repository name, click Settings.
Click Notifications.
and check if your notifications is on for this repo, if yes then turn off it.

Subscribing to a git repository on slack

Can someone tell me like I'm 5 on subscribing to a git repository on slack? My google-fu is not giving any answers.
I have five repositories, none of which I'm the owner on. I want a slack notification when there's a push to these repositories. If I type /github help I get a list of commands and it says I should be able to subscribe by "/github subscribe owner/repository"
I'm not sure which people on my team "own" the repository and I'm not sure where this information is in github.
I read somewhere I could just do /github subscribe and paste the full https link, but I get this back
If I click Install button I get a page that says "Where do you want to install slack?"
If I select configure under my github main repo, I get this:
If I start adding repositories, everyone on my team gets an email notification to add slack to github. I don't get an email notification. Nothing happens at all. Then everyone in the company pings me asking me why they're getting slack/github notifications. To prevent further humiliation, I just stopped trying to add the repo. I'd still like to add it though.
I should be able to subscribe by "/github subscribe owner/repository"
I'm not sure which people on my team "own" the repository and I'm not sure where this information is in github.
I just wanted to help with this part, since I recently had to figure that same thing out. The owner is the organization that your repositories belong to. So, lets say you have a repo named "RepoOne". If you click into that repo, the URL in the address bar should show: "https://github.com/[owner]/RepoOne"
So, you should be able to copy the owner and repo name from your URL and use it in the command as follows:
/github subscribe [owner]/RepoOne
Keep in mind, that only subscribes you to the isssues, pulls, commits, releases, and deployments. I like to include the reviews and comments too, so I go with:
/github subscribe [owner]/RepoOne reviews comments

Force code review of a team member - EGit

I have a repository in GitHub and I connected it to my eclipse git.
Now I want to share it with my friends so we can update the code together.
The problem is that every one of my friends can push anything to the remote master without supervision.
I want to force one of my team members to approve a commit before she gets pushed to the master, like code review or something.
What are my options and how can I accomplish them ?
Thanks,
ben
For my understanding, GitHub uses pull request for code review and code merge. If your friends want to push code, they should first fork your repository, push code to their forked repository and create pull request for review.

How do I turn off automatic notification subscription for new repositories in a single organization on Github?

When I create a new repository in a Github organization, all the organization owners get automatically subscribed to that repository's notification.
I'm going to be making a lot of repositories for archival purposes. I would like to turn auto subscribe off, not just for me but for everyone in the org. I would also like to avoid sending out the initial "you have been automatically subscribed" email. I can't find anything in the Github API or organization settings to do this.
Hey there, we're just writing to let you know that you've been automatically subscribed to a repository on GitHub.
gitpan-test/Acme-LookOfDisapproval created by gitpan-test-account
Read-only release history for Acme-LookOfDisapproval
https://github.com/gitpan-test/Acme-LookOfDisapproval
You'll receive notifications for all issues, pull requests, and comments that happen inside the repository. If you would like to stop watching this repository, you can manage your settings here:
https://github.com/gitpan-test/Acme-LookOfDisapproval/subscription
You can unwatch this repository immediately by clicking here:
https://github.com/gitpan-test/Acme-LookOfDisapproval/unsubscribe_via_email/blahblahblah
You were automatically subscribed because you've been given push access to the repository.
Thanks!
Go to your profile settings
Click Notification Center
Uncheck Automatically watch repositories
I love gifs so I created one to show how to deal with this issue.
Go to your Settings page on GitHub
Then click at Notifications menu
Just uncheck Automatically watch repositories and you're done.
Peace! ✌️
The apacheflex organization has the same issue a year ago, and their conclusion wasn't too promising:
Try unchecking "Automatically watch" at:
https://github.com/watching
I tried that, I hope it will work, just I was wondering if it can be done
from admin rights in the Apache Flex github repo, that's why I was asking Om
unfortunately there are no Admin settings that lets me do this.
The best approach would be to go unwatch repos you dont want here: https://github.com/watching, like Jose mentioned.
This seems to be a per user setting and not a per organization setting.
You might also uncheck the 'Automatically watch' setting if you dont want to do this every repo that gets created.
Not ideal, but this is the best option we have for now.
This seems to be confirmed by the OP Schwern as detailed in the comments:
I contacted Github tech support and they said much the same thing, to turn off "Automatically watch".
Unfortunately that must be done per org member and it's a global option, not specific to the org.
To stop receiving notifications on some of the repos that you have been added to, simply visit this url https://github.com/watching and uncheck/unwatch all the repos you don't want to receive notifications from.
Hope this helps.
Check out github-watchlist
It allows regular expression based mass subscribing and unsubscribing for repositories.
Github-watchlist
I'm almost 8 years late but this can be handy.
# Make sure the personal access token has access to notifications & repo
GH_TOKEN=<TOKEN-HERE>
ORGANIZATION=<ORG-NAME>
MAX_REPO_COUNT=5000
repolist=$(GH_TOKEN=$GH_TOKEN gh repo list $ORGANIZATION -L $MAX_REPO_COUNT --json name --jq '.[].name')
echo $repolist | while read repo; do
echo "Unsubscribing from $ORGANIZATION/$repo\n"
GH_TOKEN=$GH_TOKEN gh api -H "Accept: application/vnd.github+json" /repos/$ORGANIZATION/$repo/subscription --method PUT -F ignored=true | jq '.'
done

How to get specific github notifications like pull requests or assigned issues?

Github provides notifications via mail or web, based on watched repos. But is there a way to get more in detail? Like only watch a specific pull requet or assigned issue? I feel like i get spammed from comments on other pull requests that have nothing to do with me.
Update Nov. 2020: you now have "Custom notification controls"
This week we are giving you more control over the types of content that you are notified about on GitHub:
Watching a repository can often be a double-edged sword.
You want to stay up to date with a project, but if you have a specific interest or role within the community, you have no choice but to subscribe to updates on everything.
No more.
Beneath the watch button, you’ll find that we have made a few changes: we’ve made the language clearer so you know what you’ll receive updates about, we’ve made the interface more accessible and, we’ve introduced a new custom category.
Within this, you can select the types of content you would like to be notified about.
Do you focus on code review? Limit your notifications to pull requests.
Are you a community manager? Select Discussions.
As new types of notifications are added, you’ll find them in this menu.
You’ll find these controls on all repository pages and on your watching page where you can customize notifications for repositories you already watch.
Update May 2019: you now have "Custom thread subscriptions"
You can now limit the types of notifications you receive for any issue and pull request to be specific to merge, reopened and/or closed events.
That should allow to further control the amount of emails received.
Update July 2017: you now can declare in the GitHub repo a code owner.
Any pull request touching a file managed by said code owner will trigger a notification to that person.
See "Repo owner automatic notification after updating a pull request"
2015: Yes, for instance, for a specific issue on a project (issue 2595), you can register by clicking the "Subscribe" button at the right side of the page (since 2015).
Once clicked, it will appear as "Unsubscribe" (for you to click if you don't want any more notifications)
So you don't have to watch the all repo, you can subscribe only to specific issues.
Not sure if this has changed, but now there's a subscribe button in the top right corner:
https://help.github.com/articles/subscribing-to-conversations/
first disclaimer, Im part of the team at zigi.ai
Instead of getting notifications for every activity on Git via email or web, Zigi integrates with your Github to learn your pull request activity,
Filters the information and sends you actionable notifications on your pull requests activity (from all repos) that is relevant to your work directly from Slack.
Once a PR is created in GitHub, Zigi manages the entire workflow:
Gathers all the communications related to a PR- that's relevant to
you
Tells me which PRs are waiting for my review from all repos
Shows which of my PRs are waiting for a teammate's review and for how
long
Makes it easy to ping teammates to remind them (without feeling
awkward about bothering them)
Lets me add reviewers
Tells me when a PR is stuck or open for a long time
Helps me make sure the code owner approved
See here an example of a Slack message with filtered notification for pull request