RFR: 1588: Bridge messages should not be sent for PRs in draft state

Erik Joelsson erikj at openjdk.org
Fri Feb 10 18:56:17 UTC 2023

On Fri, 10 Feb 2023 18:12:04 GMT, Zhao Song <zsong at openjdk.org> wrote:

> Ok, I think the solution is that we don't filter in `MailingListBridgeBot#getPeriodicItems`. Instead, in `ArchiveWorkItem#run`, we can check if the pr is in draft mode and record the time. This recorded time can then be used to filter the comments.

There should be events that we can query for with timestamps for when the state change happened. The check would be something like this: If pr.isDraft(), find last event that put it in draft and use the timestamp of that as filter for any email generation.


PR: https://git.openjdk.org/skara/pull/1469

More information about the skara-dev mailing list