Skip to content
Snippets Groups Projects
Commit c6a9a5aa authored by Walter Lozano's avatar Walter Lozano
Browse files

apertis-pkg-merge-local: Support different types of release commits


Depending on the type of changes, upstream or donwstream, it is better to
use different settings while generation the changelog, in order to provide
or not the full set of changes.

Signed-off-by: default avatarWalter Lozano <walter.lozano@collabora.com>
parent 2bdea3f0
Branches apertis/v2026dev1 apertis/v2026dev2
2 merge requests!103Backport v2025 <- v2026dev1: ci-license-scan: Add proposed whitelist,!101ci-license-scan: Add proposed whitelist
......@@ -83,7 +83,6 @@ commit-whitelist() {
}
release() {
dch --force-distribution --distribution apertis --local +apertis --upstream Rebase on top of $UPSTREAM_BRANCH
git add debian/changelog
git diff --cached
DIR=`pwd`
......@@ -93,6 +92,16 @@ release() {
git commit -sm "Release $PACKAGE version $VERSION"
}
release-down() {
GBP_CONF_FILES=/dev/null gbp dch --release --force-distribution -D apertis --local +apertis --ignore-branch --dch-opt=--upstream --full
release
}
release-up() {
dch --force-distribution --distribution apertis --local +apertis --upstream Merge changes from $UPSTREAM_BRANCH
release
}
COMMAND=$1
shift
EXTRA_ARGS=$@
......@@ -113,11 +122,14 @@ scan)
commit-whitelist)
commit-whitelist
;;
release)
release
release-down)
release-down
;;
release-up)
release-up
;;
*)
echo Unknown command
echo Usage `basename $0` '[merge|diff|diff_old|scan|commit-whitelist|release]'
echo Usage `basename $0` '[merge|diff|diff_old|scan|commit-whitelist|release-down|release-up]'
;;
esac
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment