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:
Jellyfrog
2022-01-24 22:40:42 +01:00
committed by GitHub
parent 20495d648c
commit 6c1726d2d1

View File

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