Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-9675

Add Java API for the Git module + new APIs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 5.3-milestone-2
    • Component/s: {Unused} Git
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Right now there's only a Script Service. We also need a Java API so that other components can access it.

      New API:

          /**
           * Find all authors who have ever committed code in the passed repositories.
           *
           * @param repositories the list of repositories in which to look for authors
           * @return the list of authors who have ever contributed code in the passed repository
           */
          Set<PersonIdent> findAuthors(List<Repository> repositories);
      
          /**
           * Count commits done by all authors in the passed repositories and since the passed date.
           *
           * @param since the date from which to start counting. If null then counts from the beginning
           * @param repositories the list of repositories in which to look for commits
           * @return the author commit activity
           */
          UserCommitActivity[] countAuthorCommits(Date since, List<Repository> repositories);
      

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: