mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Use commit date to compare pull requestes (#13701)
"The created_at attribute is the date of the commit used for the release, and not the date when the release was drafted or published."
This commit is contained in:
@@ -391,14 +391,14 @@ GRAPHQL;
|
||||
$this->getPullRequest();
|
||||
}
|
||||
|
||||
if (! isset($previous_release['published_at'])) {
|
||||
if (! isset($previous_release['created_at'])) {
|
||||
throw new Exception(
|
||||
$previous_release['message'] ??
|
||||
"Could not find previous release tag. ($this->from)"
|
||||
);
|
||||
}
|
||||
|
||||
$this->getPullRequests($previous_release['published_at']);
|
||||
$this->getPullRequests($previous_release['created_at']);
|
||||
$this->buildChangeLog();
|
||||
$this->formatChangeLog();
|
||||
|
||||
|
Reference in New Issue
Block a user