Skip to content

"Old" PRs are not included in the release notes; seems like fromdate is not calculated correctly #1176

@mikeage

Description

@mikeage

I've recently merged a few old PRs (months, not years), and it seems like they're not being found when creating a changelog. All of the "recent" PRs are included just fine.

My config is at: https://github.com/icosa-gallery/open-brush/blob/main/.github/workflows/build.yml#L419 (ignore the later invocation in the same file; that's not the problem).

This is a successful merge: https://github.com/icosa-gallery/open-brush/actions/runs/5668303523/job/15359591082 (look at the "Build Changelog" step). It reports:

  ℹ️ Comparing icosa-gallery/open-brush - '2.3.36...9705caad484cb78e222b11b9b7ab1dc75705a0da'
  ℹ️ Found 1 commits from the GitHub API for icosa-gallery/open-brush
  ℹ️ Fetching PRs between dates 2023-07-26T11:42:25.000Z to 2023-07-26T11:42:25.000Z for icosa-gallery/open-brush
  ℹ️ Retrieved 172 PRs for icosa-gallery/open-brush in date range from API
  ℹ️ Retrieved 1 release commits for icosa-gallery/open-brush
  ℹ️ Retrieved 1 merged PRs for icosa-gallery/open-brush

Compare that with the next build at https://github.com/icosa-gallery/open-brush/actions/runs/5679260667/job/15391975204

  ℹ️ Comparing icosa-gallery/open-brush - '2.3.37...3b866a4ec779d4ba17397fb55dad4fbea3b21d67'
  ℹ️ Found 1 commits from the GitHub API for icosa-gallery/open-brush
  ℹ️ Fetching PRs between dates 2023-07-27T10:10:50.000Z to 2023-07-27T10:10:50.000Z for icosa-gallery/open-brush
  ℹ️ Retrieved 87 PRs for icosa-gallery/open-brush in date range from API
  ℹ️ Retrieved 1 release commits for icosa-gallery/open-brush
  ℹ️ Retrieved 0 merged PRs for icosa-gallery/open-brush

In both cases, the dates look rather weird (the toDate is fine, but the fromDate looks wrong!), and it finds far fewer PRs to check, which, I'm assuming, is why it doesn't find the PRs that the second job came from.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions