Browse Source

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

master
Dominik Meyer 3 years ago
parent
commit
2fb1cb1cd7
Signed by: byterazor GPG Key ID: B4C312B600606B64
  1. 4
      lib/Git/IssueManager.pm

4
lib/Git/IssueManager.pm

@ -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);

Loading…
Cancel
Save