From 90a66ab5dd73483033346ecabb9a44d14d2cae96 Mon Sep 17 00:00:00 2001 From: Oleksandr Slynko Date: Fri, 4 Oct 2019 14:46:09 +0100 Subject: [PATCH 1/2] Do not require branch if pushing only tags Signed-off-by: Oleksandr Slynko Signed-off-by: Oleksandr Slynko --- assets/out | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/out b/assets/out index 2e165ec9..06999857 100755 --- a/assets/out +++ b/assets/out @@ -48,7 +48,7 @@ if [ -z "$uri" ]; then exit 1 fi -if [ -z "$branch" ]; then +if [ -z "$branch" ] && [ "$only_tag" != "true" ]; then echo "invalid payload (missing branch)" exit 1 fi From ba3e7d8cf1b6a6e669d51b2f65851e2f1ad40f36 Mon Sep 17 00:00:00 2001 From: Oleksandr Slynko Date: Mon, 20 Apr 2020 00:26:23 +0100 Subject: [PATCH 2/2] Branch name is not required when pushing with tag Signed-off-by: Oleksandr Slynko --- test/helpers.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/test/helpers.sh b/test/helpers.sh index ff238f1f..b8aae0cf 100644 --- a/test/helpers.sh +++ b/test/helpers.sh @@ -864,7 +864,6 @@ put_uri_with_only_tag() { jq -n "{ source: { uri: $(echo $1 | jq -R .), - branch: \"master\" }, params: { repository: $(echo $3 | jq -R .),