Last active
August 29, 2015 14:17
-
-
Save oleksii-demedetskyi/6584ac2e69bcfc8c51cc to your computer and use it in GitHub Desktop.
Script for XCI release notes building.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyProject Bot #29 (Tue Mar 17 19:19:07 EET 2015) | |
c297393 - Merge branch 'feature/test-feature' into 'master' | |
Feature/test feature | |
asd a | |
d | |
da | |
sda | |
sd | |
asd | |
asda sdfj a;sdjf;alskdfjal jfalskj fal;sdf alskdjfa;ls fa;lksf ;lsdkf ;lsdkf ;asdkf l;f;lks f;lask fa;lsdkf ;sdkf a;sdfk as;dfas; fa;lsfkasldhfaskdjfhajshfksdjhf djhf dfhdjh fdjhf djfh djfhd jdhf sjdhs jdhsdjh sd | |
See merge request !8 | |
5c88660 - Merge commit '3b564c02961734b14ac971d5598cf6661c8b5785' into feature/test-feature |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SOURCE_LOG="$XCS_OUTPUT_DIR/sourceControl.log" | |
NOTES="$XCS_OUTPUT_DIR/notes.txt" | |
REVS=$(grep "Revision:" $SOURCE_LOG | sed 's/Revision: //') | |
cd * | |
echo "$XCS_BOT_NAME #$XCS_INTEGRATION_NUMBER ($(date)) " > "$NOTES" | |
echo "" >> "$NOTES" | |
if [ "$REVS" ]; then | |
for REV in $REVS; do | |
git show -s --format="%h - %s" $REV | sed -e :a -e '/^\n*$/{$d;N;};/\n$/ba' >> "$NOTES" | |
if [ "$(git show -s --format="%b" $REV)" ]; then | |
git show -s --format="%w(72)%b" $REV | sed -e :a -e '/^\n*$/{$d;N;};/\n$/ba' | sed 's/^/ /' >> "$NOTES" | |
fi | |
done | |
else | |
echo "No updates in git." >> "$NOTES" | |
fi | |
cat "$NOTES" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment