From 0e6c52168c8bfb3972f87ed2213bffa1b6569707 Mon Sep 17 00:00:00 2001 From: Boris Shestov Date: Tue, 28 Jan 2025 15:42:48 +0300 Subject: [PATCH] DO-1497--release-activity-plaformng-ref (!60) [DO-1497] Co-authored-by: Boris Shestov Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/60 Reviewed-by: Aleksandr Vodyanov --- src/tech/avroid/api/Gitea.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tech/avroid/api/Gitea.groovy b/src/tech/avroid/api/Gitea.groovy index a30e4f0..5dd9546 100644 --- a/src/tech/avroid/api/Gitea.groovy +++ b/src/tech/avroid/api/Gitea.groovy @@ -19,14 +19,14 @@ class Gitea implements Serializable { //TODO: refactor with Gitea token /** * Create new branch from source branch - * @param srcBranch String - source branch + * @param srcRef String - source branch/tag/commit * @param dstBranch String - new branch * @return Boolean - success or failure create */ - public Boolean createBranch(String srcBranch, String dstBranch) { + public Boolean createBranch(String srcRef, String dstBranch) { Map body = [ new_branch_name: dstBranch, - old_branch_name: srcBranch + old_ref_name: srcRef ] Object res = script.httpRequest(