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
3cebb4ea
Commit
3cebb4ea
authored
Oct 08, 2013
by
Greg Price
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1264 from edx/gprice/fix-release-email-script
Fix bug that omits commits in release email script
parents
64e3624e
6b7749f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
scripts/release-email-list.sh
+10
-11
No files found.
scripts/release-email-list.sh
View file @
3cebb4ea
...
...
@@ -36,15 +36,13 @@ echo
echo
'||Author||Changes||Commit Link||Testing Notes||'
for
EMAIL
in
$RESPONSIBLE
;
do
AUTHORED_BY
=
"
$LOG_CMD
--author=<
${
EMAIL
}
>"
COMMITTED_BY
=
"
$LOG_CMD
--committer=<
${
EMAIL
}
>"
COMMITTED_NOT_AUTHORED
=
"
$COMMITTED_BY
$(
$AUTHORED_BY
--format
=
'tformat:^%h'
)
"
$AUTHORED_BY
--format
=
"tformat:|
$EMAIL
|%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |"
| head
-n
1
$AUTHORED_BY
--format
=
"tformat:| |%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |"
| tail
-n
+2
if
[[
$(
$COMMITTED_NOT_AUTHORED
)
!=
""
]]
;
then
$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|[commit|https://github.com/edx/edx-platform/commit/%h]| |"
| tail
-n
+2
fi
AUTHORED_BY
=
$(
$LOG_CMD
--author
=
"<
${
EMAIL
}
>"
--format
=
'tformat:%h'
)
COMMITTED_BY
=
$(
$LOG_CMD
--committer
=
"<
${
EMAIL
}
>"
--format
=
'tformat:%h'
)
ALL_COMMITS
=
$(for
HASH
in
$AUTHORED_BY
$COMMITTED_BY
;
do
echo
$HASH
;
done
| sort | uniq
)
EMAIL_COL
=
"
$EMAIL
"
for
HASH
in
$ALL_COMMITS
;
do
git log
--format
=
"tformat:|
$EMAIL_COL
|%s|[commit|https://github.com/edx/edx-platform/commit/%h]| |"
-n
1
$HASH
EMAIL_COL
=
" "
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