feature change: seprate commands using \n

This commit is contained in:
Usman Nasir
2020-04-02 21:58:08 +05:00
parent 17081c4f2a
commit fbbd39570b
2 changed files with 5 additions and 5 deletions

View File

@@ -235,7 +235,7 @@
<label class="col-sm-3 control-label">{% trans "Commands" %}</label>
<div class="col-sm-9">
<textarea ng-model="$parent.commands"
placeholder="Add Commands to run after every commit, separate commands using comma."
placeholder="Add Commands to run after every commit, each line must contain one command only."
rows="4"
class="form-control">{$ currentCommands $}</textarea>
</div>

View File

@@ -3402,8 +3402,8 @@ StrictHostKeyChecking no
GitLogs(owner=self.masterWebsite, type='INFO', message='Running commands after successful git commit..').save()
if self.commands.find(',') > -1:
commands = self.commands.split(',')
if self.commands.find('\n') > -1:
commands = self.commands.split('\n')
for command in commands:
GitLogs(owner=self.masterWebsite, type='INFO',
@@ -4120,8 +4120,8 @@ StrictHostKeyChecking no
GitLogs(owner=self.web, type='INFO', message='Running commands after successful git commit..').save()
if gitConf['commands'].find(',') > -1:
commands = gitConf['commands'].split(',')
if gitConf['commands'].find('\n') > -1:
commands = gitConf['commands'].split('\n')
for command in commands:
GitLogs(owner=self.web, type='INFO',