From c7f16c38f13c60b745624fbda8aa00852d4380a7 Mon Sep 17 00:00:00 2001 From: "Ch.-David Blot" Date: Wed, 23 Jul 2025 13:33:13 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20ci:=20fix=20release=20scripts=20?= =?UTF-8?q?to=20respect=20gitmoji=20convention?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/dependabot.yml | 2 ++ .github/scripts/release-build.sh | 4 ++-- .github/scripts/release-pr.sh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9c37be0..da99d0a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,3 +5,5 @@ updates: directory: "/" schedule: interval: "daily" + commit-message: + prefix: "⬆️ deps: " diff --git a/.github/scripts/release-build.sh b/.github/scripts/release-build.sh index a618e0f..02d1460 100755 --- a/.github/scripts/release-build.sh +++ b/.github/scripts/release-build.sh @@ -36,8 +36,8 @@ done # Setup git && commit git config user.name "Outscale Bot" git config user.email "opensource+bot@outscale.com" -commit_msg="osc-sdk-python v$new_sdk_version +commit_msg="🔖 release: osc-sdk-python v$new_sdk_version - - SDK update for Outscale API v$osc_api_version + - SDK update for Outscale API $osc_api_version " git commit -sm "$commit_msg" diff --git a/.github/scripts/release-pr.sh b/.github/scripts/release-pr.sh index 9845a27..e1b1089 100755 --- a/.github/scripts/release-pr.sh +++ b/.github/scripts/release-pr.sh @@ -19,7 +19,7 @@ major=$(echo $new_sdk_version | cut -d '.' -f 1) branch_name="autobuild-$new_sdk_version" # https://docs.github.com/en/free-pro-team@latest/rest/reference/pulls#create-a-pull-request -result=$(curl -s -X POST -H "Authorization: token $GH_TOKEN" -d "{\"head\":\"$branch_name\",\"base\":\"master\",\"title\":\"SDK v$new_sdk_version\",\"body\":\"Automatic build of SDK v$new_sdk_version version based on Outscale API v$osc_api_version\"}" "https://api.github.com/repos/outscale/osc-sdk-python/pulls") +result=$(curl -s -X POST -H "Authorization: token $GH_TOKEN" -d "{\"head\":\"$branch_name\",\"base\":\"master\",\"title\":\"SDK v$new_sdk_version\",\"body\":\"Automatic build of SDK v$new_sdk_version version based on Outscale API $osc_api_version\"}" "https://api.github.com/repos/outscale/osc-sdk-python/pulls") errors=$(echo $result | jq .errors)