Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9668a335
Commit
9668a335
authored
May 02, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include author in table
parent
cd538bd8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
scripts/release.py
+6
-2
No files found.
scripts/release.py
View file @
9668a335
...
@@ -155,8 +155,9 @@ def generate_table(start_ref, end_ref):
...
@@ -155,8 +155,9 @@ def generate_table(start_ref, end_ref):
"""
"""
Return a string corresponding to a commit table to embed in Confluence
Return a string corresponding to a commit table to embed in Confluence
"""
"""
header
=
"|| Merged By || Title || PR || JIRA || Verified? ||"
header
=
"|| Merged By ||
Author ||
Title || PR || JIRA || Verified? ||"
pr_link
=
"[#{num}|https://github.com/edx/edx-platform/pull/{num}]"
pr_link
=
"[#{num}|https://github.com/edx/edx-platform/pull/{num}]"
user_link
=
"[@{user}|https://github.com/{user}]"
rows
=
[
header
]
rows
=
[
header
]
prbe
=
prs_by_email
(
start_ref
,
end_ref
)
prbe
=
prs_by_email
(
start_ref
,
end_ref
)
for
email
,
pull_requests
in
prbe
.
items
():
for
email
,
pull_requests
in
prbe
.
items
():
...
@@ -165,6 +166,7 @@ def generate_table(start_ref, end_ref):
...
@@ -165,6 +166,7 @@ def generate_table(start_ref, end_ref):
pr_info
=
get_pr_info
(
pull_request
)
pr_info
=
get_pr_info
(
pull_request
)
title
=
pr_info
[
"title"
]
or
""
title
=
pr_info
[
"title"
]
or
""
body
=
pr_info
[
"body"
]
or
""
body
=
pr_info
[
"body"
]
or
""
author
=
pr_info
[
"user"
][
"login"
]
except
requests
.
exceptions
.
RequestException
as
e
:
except
requests
.
exceptions
.
RequestException
as
e
:
print
(
print
(
"Warning: could not fetch data for #{num}: {message}"
.
format
(
"Warning: could not fetch data for #{num}: {message}"
.
format
(
...
@@ -174,8 +176,10 @@ def generate_table(start_ref, end_ref):
...
@@ -174,8 +176,10 @@ def generate_table(start_ref, end_ref):
)
)
title
=
"?"
title
=
"?"
body
=
"?"
body
=
"?"
rows
.
append
(
"| {merged_by} | {title} | {pull_request} | {jira} | {verified} |"
.
format
(
author
=
""
rows
.
append
(
"| {merged_by} | {author} | {title} | {pull_request} | {jira} | {verified} |"
.
format
(
merged_by
=
email
if
i
==
0
else
""
,
merged_by
=
email
if
i
==
0
else
""
,
author
=
user_link
.
format
(
user
=
author
)
if
author
else
""
,
title
=
title
.
replace
(
"|"
,
"
\
|"
),
title
=
title
.
replace
(
"|"
,
"
\
|"
),
pull_request
=
pr_link
.
format
(
num
=
pull_request
),
pull_request
=
pr_link
.
format
(
num
=
pull_request
),
jira
=
", "
.
join
(
parse_ticket_references
(
body
)),
jira
=
", "
.
join
(
parse_ticket_references
(
body
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment