Skip to content

Commit

Permalink
hack: Update release script and mailMap
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Deutsch <[email protected]>
  • Loading branch information
fabiand committed Jul 19, 2018
1 parent f69b729 commit 0e62742
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ Yuval Lifshitz <[email protected]> <[email protected]>
Marc Sluiter <[email protected]> <[email protected]>
Sebastian Scheinkman <[email protected]> <[email protected]>
Ihar Hrachyshka <[email protected]> <[email protected]>
Tzvi Avni <[email protected]> <[email protected]>
Tzvi Avni <[email protected]> <[email protected]>
Tzvi Avni <[email protected]> <[email protected]>
Ryan Hallisey <[email protected]> <[email protected]>
10 changes: 7 additions & 3 deletions hack/release-announce.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ summary() {
downloads() {
log "Adding download urls"
local GHRELURL="https://github.com/kubevirt/kubevirt/releases/tag/"
local RELURL="$GHRELURL$RELREF"
local RELURL="$GHRELURL$FUTURERELREF"
cat <<EOF
The source code and selected binaries are available for download at:
<$RELURL>.
Expand All @@ -53,13 +53,14 @@ functest() {
}

usage() {
echo "Usage: $0 [RELEASE_REF] [PREV_RELEASE_REF]"
echo "Usage: $0 [FUTURE_RELEASE_REF] [PREV_RELEASE_REF]"
}

main() {
log "Span: $RELSPANREF"

fold -s <<EOF | tee release-announce
---
$(summary)
$(downloads)
Expand Down Expand Up @@ -95,13 +96,16 @@ Additional Resources
[git-evtag]: https://github.com/cgwalters/git-evtag#using-git-evtag
[contributing]: https://github.com/kubevirt/kubevirt/blob/master/CONTRIBUTING.md
[license]: https://github.com/kubevirt/kubevirt/blob/master/LICENSE
---
git evtag sign $FUTURERELREF
EOF
}

#
# Let's get the party started
#
RELREF="$1"
FUTURERELREF="$1"
RELREF="HEAD"
PREREF="$2"
RELREF=${RELREF:-$(git describe --abbrev=0 --tags)}
PREREF=${PREREF:-$(git describe --abbrev=0 --tags $RELREF^)}
Expand Down

0 comments on commit 0e62742

Please sign in to comment.