Adjust the pull request APIs in HostedRepository

XMLWordPrintable

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

      Currently, the name and implementation of the pull request APIs in HostedRepository is not consistent. So I suggest the following changes:

      1. Change the name of the `pullRequests(ZonedDateTime updatedAfter)` to `pullRequestsAfter` so that it is consistent as the `openPullRequestsAfter`.
      2. Add the new api `openPullRequests` to get all the open pull requests.
      3. Change the implementation of the method `pullRequests()` to get all the pull requests (included open and closed)

      I also added some comments to the PR of the SKARA-1199 to state this issue. If this issue is solved first, I will remove the related comments in SKARA-1199.

            Assignee:
            Guoxiong Li
            Reporter:
            Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: