ADD: check if an issue with the same subject already exist

This commit is contained in:
Dominik Meyer 2019-03-24 00:04:21 +01:00
parent b6e4b2d6ba
commit 2fb1cb1cd7
No known key found for this signature in database
GPG Key ID: B4C312B600606B64

View File

@ -263,6 +263,10 @@ sub add
my $ref = $self->repository->getReference('refs/heads/issues');
my $root = $ref->getTree();
#check if issue with this subject already exist
my $checkIssue=$root->find($issue->subject);
die("issue with subject \"" .$issue->subject . "\" already exist") unless !(defined($checkIssue));
my $issueTree=$issue->createIssue($self->repository);
my $base=$root->find($issue->status);