Skip to content

Commit

Permalink
54 multiple issues (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliapolo authored Aug 3, 2019
1 parent 8c08977 commit c7f2277
Show file tree
Hide file tree
Showing 109 changed files with 6,170 additions and 4,184 deletions.
12 changes: 6 additions & 6 deletions pyci/api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,16 @@ def __str__(self):
return 'Commit {} does not reference any issue'.format(self.sha)


class IssueNotLabeledAsReleaseException(ReleaseValidationFailedException):
class IssuesNotLabeledAsReleaseException(ReleaseValidationFailedException):

def __init__(self, sha, issue):
def __init__(self, sha, issues):
self.sha = sha
self.issue = issue
super(IssueNotLabeledAsReleaseException, self).__init__(self.__str__())
self.issues = issues
super(IssuesNotLabeledAsReleaseException, self).__init__(self.__str__())

def __str__(self):
return 'Commit {} references issue number {}, which is not labeled with any ' \
'release labels'.format(self.sha, self.issue)
return 'Commit {} references issue {}, which are not labeled with any ' \
'release labels'.format(self.sha, self.issues)


class ReleaseNotFoundException(ApiException):
Expand Down
Loading

0 comments on commit c7f2277

Please # to comment.