Adição de suporte para cálculo de churn de arquivos e de coleta de arquivos dos commits#5
Conversation
| */ | ||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||
| public class GitHubCommitInfo { | ||
| public class CommitInfo { |
There was a problem hiding this comment.
Por favor, não mudar o nome da classe
There was a problem hiding this comment.
existe mais de um repositorio. O prefixo ajuda a distinguir entre repositóros. GitLabCommitInfo e GitHubCommitInfo.
| return result.getBody(); | ||
| } | ||
|
|
||
| public GitHubTreeInfo getAllFiles(String repoFullName, String branch){ |
There was a problem hiding this comment.
Procura comentar o que esse metodo faz. All file da onde? todos os arquivos do repositorio? Exemplo:
Get all files of repository, include source code a configuration files.
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
|
||
| @JsonIgnoreProperties(ignoreUnknown = true) |
There was a problem hiding this comment.
Adicionar um comentários para o que essa classe serve. para que ela é usada.
There was a problem hiding this comment.
Procurar especificar no nome da classe. CommitDiff para: GitlabCommitDiff
| } | ||
|
|
||
| } | ||
| public List<FileChanged> getCommitsFiles(String repoFullName, GitLabCommitInfo commit){ |
There was a problem hiding this comment.
comentário: this method return all files of a specific commit in a repository
| import java.util.Arrays; | ||
| import java.util.List; | ||
|
|
||
| public class GitLabRepoQueryExecutor extends AbstractGitLabQueryExecutor { |
There was a problem hiding this comment.
Comentário: This class should contain methods that return information about a repository in GitLab as a whole.
|
|
||
| import java.util.List; | ||
|
|
||
| public class GitHubTreeInfo { |
There was a problem hiding this comment.
comentar que tipo de informação essa classe retorna
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
|
||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||
| public class FileChanged { |
There was a problem hiding this comment.
comentar que tipo de informação essa classe retorna
There was a problem hiding this comment.
FileChange para GithubFileChange
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
|
||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||
| public class FileStats { |
| return allCommits; | ||
| } | ||
|
|
||
| public List<FileChanged> getCommitFiles(String repoFullName, CommitInfo commit){ |
There was a problem hiding this comment.
Comentário do metodo: Returns information of file changes in a specfic commt. Like source code (.java) and configuration files (.md, .txt, .xml, etc...)
| return new ArrayList<>(); | ||
| } | ||
|
|
||
| public FileStats getFileStats(String projectFullName, String filePath, LocalDateTime sinceDate, LocalDateTime untilDate){ |
There was a problem hiding this comment.
what is a filestats that this method returns? comment please.
…cumentation comments
…cumentation comments
Este Pull Request introduz novas funcionalidades para a coleta e organização de dados relacionados a arquivos de um repositório.
Principais alterações:
(commit b00dfe8)
(commit 6ccaa8d)