Skip to content

Commit

Permalink
for #141
Browse files Browse the repository at this point in the history
  • Loading branch information
mlbiam committed Nov 27, 2016
1 parent 6c04556 commit 835aaa2
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 0 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
**enhancements:**
- Move MyVD inserts to MyVD [\#139](https://github.com/TremoloSecurity/OpenUnison/issues/139)
- Support for userinfo in oidc idp [\#140](https://github.com/TremoloSecurity/OpenUnison/issues/140)
- Add filter to openshift dynamic workflow [\#138](https://github.com/TremoloSecurity/OpenUnison/issues/138)
- Integrate Kubernetes [\#133](https://github.com/TremoloSecurity/OpenUnison/issues/133)
- Integrate OIDC IdP [\#132](https://github.com/TremoloSecurity/OpenUnison/issues/132)
- Add session check to scalejs token [\#136](https://github.com/TremoloSecurity/OpenUnison/issues/136)
- Integrate OIDC AuthMech [\#131](https://github.com/TremoloSecurity/OpenUnison/issues/131)
- Integrate MongoDB into OpenUnison [\#130](https://github.com/TremoloSecurity/OpenUnison/issues/130)
- ScaleJS interface fixes [\#127](https://github.com/TremoloSecurity/OpenUnison/issues/127)
- create userprincipalname2uid mapper [\#98](https://github.com/TremoloSecurity/OpenUnison/issues/98)

**bugs:**
- saml auth chain on saml idp fails [\#137](https://github.com/TremoloSecurity/OpenUnison/issues/137)
- ScaleJS Register Home link [\#129](https://github.com/TremoloSecurity/OpenUnison/issues/129)
- Approval failures not successful [\#128](https://github.com/TremoloSecurity/OpenUnison/issues/128)

83 changes: 83 additions & 0 deletions GenGitChangeLog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Generates OpenUnison Changelog
# Call from the branch with 3 parameters:
# 1. Date from which to start looking
# 2. Github Token

# requires python-dateutil and requests from pip

from subprocess import *
import re
from datetime import datetime
import dateutil.parser
import sys
import requests



def parseIssues(message):
issuesRet = []
issues = re.findall('[#][0-9]+',message)
if issues != None:
for issue in issues:
issuesRet.append(issue[1:])
return issuesRet


def f4(seq):
# order preserving
noDupes = []
[noDupes.append(i) for i in seq if not noDupes.count(i)]
return noDupes






headers = {'Authorization':'token ' + sys.argv[2]}


GIT_COMMIT_FIELDS = ['id', 'author_name', 'author_email', 'date', 'message']
GIT_LOG_FORMAT = ['%H', '%an', '%ae', '%ai', '%s']
GIT_LOG_FORMAT = '%x1f'.join(GIT_LOG_FORMAT) + '%x1e'

#print repo.git.log(p=False)

allIssues = []

p = Popen('git log --format="%s" ' % GIT_LOG_FORMAT, shell=True, stdout=PIPE)
(log, _) = p.communicate()
log = log.strip('\n\x1e').split("\x1e")
log = [row.strip().split("\x1f") for row in log]
log = [dict(zip(GIT_COMMIT_FIELDS, row)) for row in log]

notbefore = dateutil.parser.parse(sys.argv[1] + ' 00:00:00 -0400')

for commit in log:
created = dateutil.parser.parse(commit['date'])
if created > notbefore:
message = commit['message']
allIssues.extend(parseIssues(message))


allIssues = f4(allIssues)

bylabels = {}

for issue in allIssues:
issueURL = 'https://api.github.com/repos/TremoloSecurity/OpenUnison/issues/' + issue
r = requests.get(issueURL,headers=headers)
json = r.json();
for label in json['labels']:
if not (label['name'] in bylabels):
labelGroup = []
bylabels[label["name"]] = labelGroup
labelGroup = bylabels[label['name']]
labelGroup.append(json)


for label in bylabels:
print '**' + label + 's:**'
for issue in bylabels[label]:
print ' - ' + issue['title'] + ' [\\#' + `issue['number']` + '](' + issue['html_url'] + ')'
print

0 comments on commit 835aaa2

Please sign in to comment.