-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added htmlspecialchars() to commit messages as & might break confluen…
…ce pushes
- Loading branch information
alexander.heidrich
committed
Feb 21, 2020
1 parent
39bd708
commit 1020e6e
Showing
4 changed files
with
167 additions
and
90 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# todo => actual version tag needs to become a variable! ($1) | ||
# @todo use this script as a possibility to get the tag before a specific tag | ||
# | ||
# Author: Alexander.Heidrich | ||
#ACTUAL_VERSION_TAG=$1 | ||
#PREVIOUS_VERSION_TAG= | ||
# | ||
#TAG_LIST=($(git tag -l | sort -V)) | ||
#length=${#TAG_LIST[@]} | ||
# | ||
#for (( i = 0; i < length; i++ )); do | ||
# if [[ "${TAG_LIST[$i]}" == "${ACTUAL_VERSION_TAG}" ]]; then | ||
# if [[ "$i" -gt "0" ]]; then | ||
# PREVIOUS_VERSION_TAG=${TAG_LIST[$i - 1]} # the tag in the tag list just before the current, actual tag | ||
# else | ||
# PREVIOUS_VERSION_TAG=$(git rev-list --max-parents=0 HEAD) # first commit | ||
# fi | ||
# fi | ||
#done | ||
# | ||
#echo $(git log --pretty="format:%s" "$PREVIOUS_VERSION_TAG".."$ACTUAL_VERSION_TAG") | ||
ACTUAL_VERSION_TAG=$1 | ||
PREVIOUS_VERSION_TAG= | ||
|
||
#get tag of actual version | ||
ACTUAL_VERSION_TAG=$(git tag | tail -1) | ||
TAG_LIST=($(git tag -l)) | ||
length=${#TAG_LIST[@]} | ||
|
||
#get tag of the version before actual version | ||
PREVIOUS_VERSION_TAG=$(git tag | tail -3 | head -n 1) | ||
for (( i = 0; i < length; i++ )); do | ||
if [[ "${TAG_LIST[$i]}" == "${ACTUAL_VERSION_TAG}" ]]; then | ||
if [[ "$i" -gt "0" ]]; then | ||
PREVIOUS_VERSION_TAG=${TAG_LIST[$i - 1]} # the tag in the tag list just before the current, actual tag | ||
else | ||
PREVIOUS_VERSION_TAG=$(git rev-list --max-parents=0 HEAD) # first commit | ||
fi | ||
fi | ||
done | ||
|
||
#echo $listOfTickets | ||
git log --pretty="format:%s" "$PREVIOUS_VERSION_TAG".."$ACTUAL_VERSION_TAG" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
set_time_limit(0); | ||
|
||
require __DIR__.'/../vendor/autoload.php'; | ||
|
||
use Basilicom\ReleaseNotesBundle\Command\ReleaseNotesPublisherCommand; | ||
use Symfony\Component\Console\Application; | ||
|
||
$application = new Application('echo', '1.0.0'); | ||
$command = new ReleaseNotesPublisherCommand('', '', '', ''); | ||
|
||
$application->add($command); | ||
$application->run(); |