mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix for deleted github users
This commit is contained in:
@@ -234,6 +234,11 @@ GRAPHQL;
|
||||
}
|
||||
}
|
||||
|
||||
// If the Gihub profile doesnt exist anymore, the author is null
|
||||
if(empty($pr['author'])) {
|
||||
$pr['author'] = ['login' => 'ghost', 'url' => 'https://github.com/ghost'];
|
||||
}
|
||||
|
||||
// only add the changelog if it isn't set to ignore
|
||||
if (!in_array('ignore changelog', $pr['labels'])) {
|
||||
$title = addcslashes(ucfirst(trim(preg_replace('/^[\S]+: /', '', $pr['title']))), '<>');
|
||||
|
Reference in New Issue
Block a user