Skip to content

Commit

Permalink
Merge pull request #92 from parteekcoder/contribute_action
Browse files Browse the repository at this point in the history
Fixed issue of not updating title and body by user
  • Loading branch information
pradeeban committed Jul 21, 2023
2 parents edcc46b + 1c3f8b8 commit 78be237
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contribute
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion contribute.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 78be237

Please sign in to comment.