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
3d1188b1
Commit
3d1188b1
authored
Jul 15, 2013
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make release email script wiki-friendly
parent
f9f0d9cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
scripts/release-email-list.sh
+17
-7
No files found.
scripts/release-email-list.sh
View file @
3d1188b1
...
@@ -4,27 +4,36 @@ LOG_CMD="git --no-pager log $1..$2"
...
@@ -4,27 +4,36 @@ LOG_CMD="git --no-pager log $1..$2"
RESPONSIBLE
=
$(
sort
-u
<
(
$LOG_CMD
--format
=
'tformat:%ae'
&&
$LOG_CMD
--format
=
'tformat:%ce'
)
)
RESPONSIBLE
=
$(
sort
-u
<
(
$LOG_CMD
--format
=
'tformat:%ae'
&&
$LOG_CMD
--format
=
'tformat:%ce'
)
)
echo
"~~~~ Email ~~~~~"
echo
-n
'To: '
echo
-n
'To: '
echo
${
RESPONSIBLE
}
| sed
"s/ /, /g"
echo
${
RESPONSIBLE
}
| sed
"s/ /, /g"
echo
echo
echo
"You've made changes that are about to be released. All of the commits
echo
"You've made changes that are about to be released. All of the commits
that you either authored or committed are listed below. Please verify them on
that you either authored or committed are listed below. Please verify them on
\$
ENVIRONMENT"
\$
ENVIRONMENT.
Please record your notes on https://edx-wiki.atlassian.net/wiki/display/ENG/Release+Page%3A+
\$
DATE
and add any bugs found to the Release Candidate Bugs section"
echo
echo
echo
"~~~~~ Wiki Table ~~~~~"
echo
"Type Ctrl+Shift+D on Confluence to embed the following table in your release wiki page"
echo
echo
'||Author||Changes||Commit Link||Testing Notes||'
for
EMAIL
in
$RESPONSIBLE
;
do
for
EMAIL
in
$RESPONSIBLE
;
do
AUTHORED_BY
=
"
$LOG_CMD
--author=<
${
EMAIL
}
>"
AUTHORED_BY
=
"
$LOG_CMD
--author=<
${
EMAIL
}
>"
COMMITTED_BY
=
"
$LOG_CMD
--committer=<
${
EMAIL
}
>"
COMMITTED_BY
=
"
$LOG_CMD
--committer=<
${
EMAIL
}
>"
COMMITTED_NOT_AUTHORED
=
"
$COMMITTED_BY
$(
$AUTHORED_BY
--format
=
'tformat:^%h'
)
"
COMMITTED_NOT_AUTHORED
=
"
$COMMITTED_BY
$(
$AUTHORED_BY
--format
=
'tformat:^%h'
)
"
echo
$EMAIL
"authored the following commits:"
$AUTHORED_BY
--format
=
"tformat:|
$EMAIL
|%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |"
| head
-n
1
$AUTHORED_BY
--format
=
'tformat: %s - https://github.com/edx/edx-platform/commit/%h'
$AUTHORED_BY
--format
=
"tformat:| |%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |"
| tail
-n
+2
echo
if
[[
$(
$COMMITTED_NOT_AUTHORED
)
!=
""
]]
;
then
if
[[
$(
$COMMITTED_NOT_AUTHORED
)
!=
""
]]
;
then
echo
$EMAIL
"committed but didn't author the following commits:"
$COMMITTED_NOT_AUTHORED
--format
=
"tformat:|
$EMAIL
|%s|[commit|https://github.com/edx/edx-platform/commit/%h]|Committed, didn't author|"
| head
-n
1
$COMMITTED_NOT_AUTHORED
--format
=
'tformat: %s - https://github.com/edx/edx-platform/commit/%h'
$COMMITTED_NOT_AUTHORED
--format
=
"tformat:| |%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |"
| tail
-n
+2
echo
fi
fi
done
done
\ No newline at end of file
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