Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-1575

Adjust the pull request APIs in HostedRepository

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0
    • None
    • 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.

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

              Created:
              Updated:
              Resolved: