Skip to content
Permalink
Browse files
update changelog
Signed-off-by: Raymond Auge <rotty3000@apache.org>
  • Loading branch information
rotty3000 committed Apr 6, 2021
1 parent cfee5eb commit ddf5a82672d2e20bd6c97e4296cba316422718ff
Showing 3 changed files with 106 additions and 19 deletions.
@@ -0,0 +1,3 @@
Carlos Sierra Andrés <csierra@gmail.com> <carlos.sierra@liferay.com>
Raymond Augé <rotty3000@apache.org> <raymond.auge@liferay.com>
Raymond Augé <rotty3000@apache.org> <rotty3000@apache.org>
@@ -1,11 +1,4 @@
# Changelog

*generated using*
```
git shortlog --branches=master --no-merges -c --format="- %h %s" -w0,2 <from_tag>..<commit> >> changelog.md
```

### 1.0.10 - 1.1.0
## org.apache.aries.jax.rs-1.1.0

Carlos Sierra Andrés (3):
- 99cf69e Update versions
@@ -47,7 +40,7 @@ Raymond Augé (12):
jbonofre (1):
- 1c374b0 [maven-release-plugin] prepare for next development iteration

### 1.0.9 - 1.0.10
## org.apache.aries.jax.rs-1.0.10

Carlos Sierra Andrés (8):
- e8c4656 [ARIES-JAXRS-Whiteboard][maven-release-plugin] 1.0.9 prepare for next development iteration
@@ -72,7 +65,7 @@ Romain Manni-Bucau (5):
jbonofre (1):
- 6dd1a3a [maven-release-plugin] prepare release org.apache.aries.jax.rs-1.0.10

### 1.0.8 - 1.0.9
## org.apache.aries.jax.rs-1.0.9

Carlos Sierra Andrés (12):
- b04385c [ARIES-JAXRS-Whiteboard][maven-release-plugin] 1.0.8 prepare for next development iteration
@@ -119,7 +112,7 @@ Raymond Auge (20):
- 87ef144 add exports required for java 15
- 7f16404 fix cxf java 15 detection bug

### 1.0.7 - 1.0.8
## org.apache.aries.jax.rs-1.0.8

Carlos Sierra Andrés (8):
- 281f15a [ARIES-JAXRS-Whiteboard][maven-release-plugin] 1.0.7 prepare for next development iteration
@@ -131,7 +124,7 @@ Carlos Sierra Andrés (8):
- 0608e52 Check in resolver output
- 065e22c [ARIES-JAXRS-Whiteboard][maven-release-plugin] 1.0.8 prepare release org.apache.aries.jax.rs-1.0.8

### 1.0.6 - 1.0.7
## org.apache.aries.jax.rs-1.0.7

Carlos Sierra (1):
- 20c8a0a [ARIES-JAXRS-Whitebord][maven-release-plugin] 1.0.6 prepare for next development iteration
@@ -147,7 +140,7 @@ Carlos Sierra Andrés (6):
Tim Ward (1):
- 22a5cf6 Add tests showing that Aries JAX-RS can break static resource handling

### 1.0.5 - 1.0.6
## org.apache.aries.jax.rs-1.0.6

Carlos Sierra (17):
- c7ce0a6 [ARIES-JAX-RS-whiteboard][maven-release-plugin] 1.0.5 prepare for next development iteration
@@ -171,8 +164,7 @@ Carlos Sierra (17):
Raymond Auge (1):
- c607c3f build badges


### 1.0.4 - 1.0.5
## org.apache.aries.jax.rs-1.0.5

Carlos Sierra (11):
- e3bac54 [ARIES-JAX-RS-Whiteboard][maven-release-plugin] 1.0.4 prepare for next development iteration
@@ -196,7 +188,7 @@ Raymond Auge (4):
- c1195de [eclipse] JDT just does not like this method usage so give in so that it will compile in eclipse
- 64c2461 [tidy up] bnd 4.2.0, use bundle annotations where possible, etc.

### 1.0.3 - 1.0.4
## org.apache.aries.jax.rs-1.0.4

Carlos Sierra (19):
- d9d0081 [ARIES-JAX-RS-WHITEBOARD][maven-release-plugin] 1.0.3 prepare for next development iteration
@@ -219,7 +211,7 @@ Carlos Sierra (19):
- 3a21658 [ARIES-1899] Unify configurations
- 2805ad3 [ARIES-JAX-RS-Whiteboard][maven-release-plugin] 1.0.4 prepare release org.apache.aries.jax.rs-1.0.4

### 1.0.2 - 1.0.3
## org.apache.aries.jax.rs-1.0.3

Carlos Sierra (11):
- d520d4e [ARIES-JAX-RS Whiteboard][maven-release-plugin] 1.0.2prepare for next development iteration
@@ -242,7 +234,7 @@ Jean-Baptiste Onofré (3):
Raymond Auge (1):
- afff1b7 project and whitespace cleanup, eliminate other warnings (no logical changes at all)

### 1.0.1 - 1.0.2
## org.apache.aries.jax.rs-1.0.2

Carlos Sierra (16):
- 47506ef [ARIES-JAXRS-Whiteabord][maven-release-plugin] 1.0.1prepare for next development iteration
@@ -274,7 +266,7 @@ Raymond Auge (7):
- 11eb9ce prevent eclipse m2e build from complaining
- 9face0a re-resolve

### 1.0.0 - 1.0.1
## org.apache.aries.jax.rs-1.0.1

Carlos Sierra (12):
- e20e691 [ARIES-JAXRS-Whiteboard][maven-release-plugin] 1.0.0 prepare for next development iteration
@@ -0,0 +1,92 @@
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at

# http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

TAG_SEARCH=
WORK_DIR=.
CHANGELOG=${WORK_DIR}/changelog.md

##########################################################################################
############# Do not edit below ##########################################################
##########################################################################################

while (( "$#" )); do
case "$1" in
-u|--update-changelog)
if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then
UPDATE=$2
shift 2
else
echo "Error: Tag for $1 is missing" >&2
exit 1
fi
;;
-*|--*=) # unsupported flags
echo "Error: Unsupported flag $1" >&2
exit 1
;;
*) # preserve positional arguments
shift
;;
esac
done

# collect all the tags that match our pattern and reverse the order
ALL_TAGS=( $(git tag -l $TAG_SEARCH | xargs -n 1 | tac) )
PREVIOUS_TAG="${ALL_TAGS[0]}"
TAGS=${ALL_TAGS[@]:1}

if [ "$UPDATEx" != "x" ]; then
printf "Updating $CHANGELOG\n"
# update the file if asked (appends to head of file)

# read the first tag in the existing changelog
line=$(head -n 1 $CHANGELOG)
TAGS=("${line#\#\# }")

# set the previous tag to the passed argument
PREVIOUS_TAG=$UPDATE
printf "Collecting changes from $TAGS to $PREVIOUS_TAG\n"

# swap the changelog for a temp file
ORIGINAL_FILE=$CHANGELOG
CHANGELOG="$CHANGELOG.tmp"
fi

# create the file if it doesn't exist
printf "" > $CHANGELOG

# write the changelog
for tag in $TAGS; do
RESULT=$(git --no-pager shortlog --no-merges --grep 'maven-release-plugin' --invert-grep --format="- %s [%h]" -w0,2 -nc $tag..$PREVIOUS_TAG $WORK_DIR)

if [[ ! -z "${RESULT// }" ]]; then
echo "## $PREVIOUS_TAG" >> $CHANGELOG
echo "$RESULT" >> $CHANGELOG
echo "" >> $CHANGELOG
fi

PREVIOUS_TAG=$tag
done

if [ "$UPDATEx" != "x" ]; then
# append the changelog to the end of temp
cat $ORIGINAL_FILE >> $CHANGELOG

# move the changelog temp over the changelog
mv -f $CHANGELOG $ORIGINAL_FILE
fi

0 comments on commit ddf5a82

Please sign in to comment.