Skip to content
Snippets Groups Projects
Commit da49c353 authored by David Baumgold's avatar David Baumgold
Browse files

Ignore certain emails in release script

parent 881b1ef9
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ import re
from collections import OrderedDict
import textwrap
IGNORED_EMAILS = set(("vagrant@precise32.(none)",))
JIRA_RE = re.compile(r"\b[A-Z]{2,}-\d+\b")
PROJECT_ROOT = path(__file__).abspath().dirname()
repo = Repo(PROJECT_ROOT)
......@@ -65,7 +66,8 @@ def emails(commit_range):
# %ae prints the authored_by email for the commit
# %n prints a newline
# %ce prints the committed_by email for the commit
return set(git.log(commit_range, format='%ae%n%ce').splitlines())
emails = set(git.log(commit_range, format='%ae%n%ce').splitlines())
return emails - IGNORED_EMAILS
def commits_by_email(commit_range, include_merge=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment