Skip to content

Commit

Permalink
Merge pull request #1082 from jberry-suse/stagingapi-update_status_co…
Browse files Browse the repository at this point in the history
…mments-no-blank

stagingapi: avoid making an empty package-diff comment.
  • Loading branch information
jberry-suse authored Aug 23, 2017
2 parents 55aeefa + 65d0de2 commit 7502d6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osclib/stagingapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,9 @@ def update_status_comments(self, project, command):
req['prefix'] = 'removed '
requests.append(req)

if not len(requests):
# Nothing changed so no sense posting comment.
return
else:
dashboard_url = '{}/project/staging_projects/{}/{}'.format(
self.apiurl, self.project, self.extract_staging_short(project))
Expand Down

0 comments on commit 7502d6a

Please sign in to comment.