Skip to content

Commit

Permalink
tweak script
Browse files Browse the repository at this point in the history
  • Loading branch information
parrt committed Dec 17, 2018
1 parent 38a95da commit 4ccf715
Showing 1 changed file with 26 additions and 30 deletions.
56 changes: 26 additions & 30 deletions scripts/github_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,32 @@

issues = repo.get_issues(state="closed", milestone=milestone, sort="created", direction="desc")

# # dump bugs fixed
# print()
# print("## Issues fixed")
# for x in issues:
# labels = [l.name for l in x.labels]
# if x.pull_request is None and not ("type:improvement" in labels or "type:feature" in labels):
# print("* [%s](%s) (%s)" % (x.title, x.html_url, ", ".join([l.name for l in x.labels])))
#
#
# print()
# # dump improvements closed for this release (issues or pulls)
# print("## Improvements, features")
# for x in issues:
# labels = [l.name for l in x.labels]
# if ("type:improvement" in labels or "type:feature" in labels):
# print("* [%s](%s) (%s)" % (x.title, x.html_url, ", ".join(labels)))
#
# print()
#
#
# # dump PRs closed for this release by target
# print("## Pull requests grouped by target")
# for target in TARGETS:
# print()
# print(f"### {target} target")
# for x in issues:
# labels = [l.name for l in x.labels]
# if x.pull_request is not None and f"target:{target}" in labels:
# print("* [%s](%s) (%s)" % (x.title, x.html_url, ", ".join(labels)))
#
# dump bugs fixed
print()
print("## Issues fixed")
for x in issues:
labels = [l.name for l in x.labels]
if x.pull_request is None and not ("type:improvement" in labels or "type:feature" in labels):
print("* [%s](%s) (%s)" % (x.title, x.html_url, ", ".join([l.name for l in x.labels])))

# dump improvements closed for this release (issues or pulls)
print()
print("## Improvements, features")
for x in issues:
labels = [l.name for l in x.labels]
if ("type:improvement" in labels or "type:feature" in labels):
print("* [%s](%s) (%s)" % (x.title, x.html_url, ", ".join(labels)))

# dump PRs closed for this release by target
print()
print("## Pull requests grouped by target")
for target in TARGETS:
print()
print(f"### {target} target")
for x in issues:
labels = [l.name for l in x.labels]
if x.pull_request is not None and f"target:{target}" in labels:
print("* [%s](%s) (%s)" % (x.title, x.html_url, ", ".join(labels)))

# dump contributors
print()
Expand Down

0 comments on commit 4ccf715

Please sign in to comment.