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
f4cb0e8c
Commit
f4cb0e8c
authored
Jul 08, 2015
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a column for release notes in the release.py table
parent
37a0c19a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
scripts/release.py
+6
-4
No files found.
scripts/release.py
View file @
f4cb0e8c
...
...
@@ -403,7 +403,7 @@ def generate_pr_table(start_ref, end_ref):
"""
Return a UTF-8 string corresponding to a pull request table to embed in Confluence.
"""
header
=
"|| Merged By || Author || Title || PR || JIRA || Verified? ||"
header
=
"|| Merged By || Author || Title || PR || JIRA ||
Release Notes? ||
Verified? ||"
pr_link
=
"[#{num}|https://github.com/edx/edx-platform/pull/{num}]"
user_link
=
"[@{user}|https://github.com/{user}]"
rows
=
[
header
]
...
...
@@ -424,12 +424,13 @@ def generate_pr_table(start_ref, end_ref):
title
=
"?"
body
=
"?"
author
=
""
rows
.
append
(
"| {merged_by} | {author} | {title} | {pull_request} | {jira} | {verified} |"
.
format
(
rows
.
append
(
"| {merged_by} | {author} | {title} | {pull_request} | {jira} | {
release_notes} | {
verified} |"
.
format
(
merged_by
=
email
if
i
==
0
else
""
,
author
=
user_link
.
format
(
user
=
author
)
if
author
else
""
,
title
=
title
.
replace
(
"|"
,
"
\
|"
)
.
replace
(
'{'
,
'
\
{'
)
.
replace
(
'}'
,
'
\
}'
),
pull_request
=
pr_link
.
format
(
num
=
pull_request
),
jira
=
", "
.
join
(
parse_ticket_references
(
body
)),
release_notes
=
""
,
verified
=
""
,
))
return
"
\n
"
.
join
(
rows
)
.
encode
(
"utf8"
)
...
...
@@ -455,16 +456,17 @@ def generate_commit_table(start_ref, end_ref):
The commits in the table should only be commits that are not in the
pull request table.
"""
header
=
"|| Author || Summary || Commit || JIRA || Verified? ||"
header
=
"|| Author || Summary || Commit || JIRA ||
Release Notes? ||
Verified? ||"
commit_link
=
"[commit|https://github.com/edx/edx-platform/commit/{sha}]"
rows
=
[
header
]
commits
=
get_commits_not_in_prs
(
start_ref
,
end_ref
)
for
commit
in
commits
:
rows
.
append
(
"| {author} | {summary} | {commit} | {jira} | {verified} |"
.
format
(
rows
.
append
(
"| {author} | {summary} | {commit} | {jira} | {
release_notes} | {
verified} |"
.
format
(
author
=
commit
.
author
.
email
,
summary
=
commit
.
summary
.
replace
(
"|"
,
"
\
|"
),
commit
=
commit_link
.
format
(
sha
=
commit
.
hexsha
),
jira
=
", "
.
join
(
parse_ticket_references
(
commit
.
message
)),
release_notes
=
""
,
verified
=
""
,
))
return
"
\n
"
.
join
(
rows
)
...
...
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