Only fetch comments once in PullRequestWorkItem in pr bot

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 1.0
    • Affects Version/s: None
    • Component/s: bots
    • None

      A minor optimization is possible in PullRequestWorkItem in pr bot. We can cache the result of pr.comments() to avoid querying for them twice. PullRequstWorkItem.isReady() gets comments most of the time already.

            Assignee:
            Erik Joelsson
            Reporter:
            Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: