From 773d3f98f4aa7c3f233c5093d3cf8f3a3b396cc8 Mon Sep 17 00:00:00 2001 From: Elliott Murray Date: Wed, 26 Aug 2020 10:03:06 +0100 Subject: [PATCH 1/2] chore: script now uses gh over hub feat: update standalone to 1.88.4 Revert "feat: update standalone to 1.88.4" This reverts commit ce4d01ec4d6a3f7a523188399bcea32d1e7c64bf. chore: script now uses gh over hub --- script/create-pr-to-update-pact-ruby-standalone.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/create-pr-to-update-pact-ruby-standalone.sh b/script/create-pr-to-update-pact-ruby-standalone.sh index 4e3f943500..5191dae21a 100755 --- a/script/create-pr-to-update-pact-ruby-standalone.sh +++ b/script/create-pr-to-update-pact-ruby-standalone.sh @@ -20,6 +20,6 @@ git add setup.py git commit -m "${TYPE}: update standalone to ${STANDALONE_VERSION}" git push --set-upstream origin ${BRANCH_NAME} -hub pull-request --browse --message "${TYPE}: update standalone to ${STANDALONE_VERSION}" - +# hub pull-request --browse --message "${TYPE}: update standalone to ${STANDALONE_VERSION}" +gh pr create -w --title "${TYPE}: update standalone to ${STANDALONE_VERSION}" git checkout master From 81fd6539b62dece980e71463fcf0d3978dc7b734 Mon Sep 17 00:00:00 2001 From: Elliott Murray Date: Wed, 26 Aug 2020 10:16:14 +0100 Subject: [PATCH 2/2] chore: release script updates version automaitcally now --- script/release_prep.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/release_prep.sh b/script/release_prep.sh index f28817819e..c4971aff67 100755 --- a/script/release_prep.sh +++ b/script/release_prep.sh @@ -12,6 +12,10 @@ fi TAG_NAME="v$VERSION" LAST_TAG=`git describe --abbrev=0` + +cat pact/__version__.py | sed "s/__version__ = .*/__version__ = '${VERSION}'/" > tmp-version +mv tmp-version pact/__version__.py + echo "Releasing $TAG_NAME" echo -e "`git log --pretty=format:' * %h - %s (%an, %ad)' $LAST_TAG..HEAD`\n$(cat CHANGELOG.md)" > CHANGELOG.md