RFR: 1709: Only fetch comments once in PullRequestWorkItem in pr bot

Erik Joelsson erikj at openjdk.org
Wed Dec 7 00:01:52 UTC 2022


This patch provides a minor optimization for `PullRequestWorkItem` subclasses in the pr bot by avoiding re-fetching of pr.comments(). I initially started this patch with a much bigger optimization in mind, but it turned out to not work. I still think it worth applying the remaining patch since I've gone through the trouble of implementing it.

-------------

Commit messages:
 - SKARA-1709

Changes: https://git.openjdk.org/skara/pull/1437/files
 Webrev: https://webrevs.openjdk.org/?repo=skara&pr=1437&range=00
  Issue: https://bugs.openjdk.org/browse/SKARA-1709
  Stats: 25 lines in 5 files changed: 15 ins; 6 del; 4 mod
  Patch: https://git.openjdk.org/skara/pull/1437.diff
  Fetch: git fetch https://git.openjdk.org/skara pull/1437/head:pull/1437

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


More information about the skara-dev mailing list