From 9ccd3488e6bdfe8cd326d001392ae335207e7003 Mon Sep 17 00:00:00 2001 From: Parteek Goyal Date: Thu, 20 Jul 2023 11:08:01 +0530 Subject: [PATCH 1/2] Fixed issue of not updating title and body by user --- contribute | 2 +- contribute.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contribute b/contribute index 5870b9e..265c4eb 100755 --- a/contribute +++ b/contribute @@ -20,4 +20,4 @@ fi if [ -z $6 ]; then arg6="#" fi -python3 contribute.py $1 $2 $3 $arg4 $arg5 $arg6 +python3 contribute.py "$1" "$2" "$3" "$arg4" "$arg5" "$arg6" diff --git a/contribute.py b/contribute.py index cb61eab..19ee2e4 100644 --- a/contribute.py +++ b/contribute.py @@ -47,7 +47,7 @@ def anyOpenPR(upstream_repo): def commitAndUpdateRef(repo,tree_content,commit,branch): try: new_tree = repo.create_git_tree(tree=tree_content,base_tree=commit.commit.tree) - new_commit = repo.create_git_commit("commit message",new_tree,[commit.commit]) + new_commit = repo.create_git_commit("commit study",new_tree,[commit.commit]) if len(repo.compare(base=commit.commit.sha,head=new_commit.sha).files) == 0: print("Your don't have any new changes.May be your example is already accepted.If this is not the case try with different fields.") exit(0) From 1c3f8b82487710a49c64edc3726d5d159573f1d1 Mon Sep 17 00:00:00 2001 From: parteekcoder Date: Thu, 20 Jul 2023 06:03:00 +0530 Subject: [PATCH 2/2] fixing title and body issue in windows --- contribute.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contribute.bat b/contribute.bat index 4ffae56..ae0014c 100644 --- a/contribute.bat +++ b/contribute.bat @@ -9,7 +9,7 @@ REM Check and set default values for the last three arguments if not provided if "%~4"=="" (set arg4="#") else (set arg4=%~4) if "%~5"=="" (set arg5="#") else (set arg5=%~5) if "%~6"=="" (set arg6="#") else (set arg6=%~6) -python contribute.py %1 %2 %3 %arg4% %arg5% %arg6% +python contribute.py %1 %2 %3 "%arg4%" "%arg5%" "%arg6%" goto :eof :missing_arg