Skip to content

Commit 78be237

Browse files
authored
Merge pull request #92 from parteekcoder/contribute_action
Fixed issue of not updating title and body by user
2 parents edcc46b + 1c3f8b8 commit 78be237

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

contribute

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ fi
2020
if [ -z $6 ]; then
2121
arg6="#"
2222
fi
23-
python3 contribute.py $1 $2 $3 $arg4 $arg5 $arg6
23+
python3 contribute.py "$1" "$2" "$3" "$arg4" "$arg5" "$arg6"

contribute.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ REM Check and set default values for the last three arguments if not provided
99
if "%~4"=="" (set arg4="#") else (set arg4=%~4)
1010
if "%~5"=="" (set arg5="#") else (set arg5=%~5)
1111
if "%~6"=="" (set arg6="#") else (set arg6=%~6)
12-
python contribute.py %1 %2 %3 %arg4% %arg5% %arg6%
12+
python contribute.py %1 %2 %3 "%arg4%" "%arg5%" "%arg6%"
1313
goto :eof
1414

1515
:missing_arg

contribute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def anyOpenPR(upstream_repo):
4747
def commitAndUpdateRef(repo,tree_content,commit,branch):
4848
try:
4949
new_tree = repo.create_git_tree(tree=tree_content,base_tree=commit.commit.tree)
50-
new_commit = repo.create_git_commit("commit message",new_tree,[commit.commit])
50+
new_commit = repo.create_git_commit("commit study",new_tree,[commit.commit])
5151
if len(repo.compare(base=commit.commit.sha,head=new_commit.sha).files) == 0:
5252
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.")
5353
exit(0)

0 commit comments

Comments
 (0)