Skip to content
Snippets Groups Projects
Commit 98e31ed7 authored by Maksim Kulichkin's avatar Maksim Kulichkin
Browse files

Issue #3393734 by SAVEL: Warnings are shown for non-issue contributions

parent 1f1c433d
No related branches found
No related tags found
1 merge request!15Issue #3393734 by SAVEL: Warnings are shown for non-issue contributions
......@@ -42,6 +42,12 @@ final class CreditParserDorg extends CreditParserBase {
continue;
}
$issue = $this->getNode($comment['node']['id'])['list'][0];
if (!isset($issue['field_project'])) {
// The comment isn't supported yet. Examples: documentation edits.
continue;
}
$project = $this->getNode($issue['field_project']['id'])['list'][0];
$user = $this->getUser($comment['author']['id'])['list'][0];
if (empty($issue['field_issue_credit'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment