-
Notifications
You must be signed in to change notification settings - Fork 2
Adição de suporte para cálculo de churn de arquivos e de coleta de arquivos dos commits #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
fbebb6b
feat: adding new graphql query to get file stats
luisaferreirass 25098cc
feat: creating new file data classes
luisaferreirass b00dfe8
feat: adding new atribute
luisaferreirass 6ccaa8d
feat: creating method to get all files
luisaferreirass fbb252a
feat: creating new data class
luisaferreirass 2de9cb8
feat: adding new gitlab query executor
luisaferreirass 082ec70
feat: feat: add GitHub changed file data model
luisaferreirass a4832e5
feat: adding list of FileChanged to GithubCommitInfo
luisaferreirass e44d91a
feat: implementing getCommitFiles in CommitQueryExecutor
luisaferreirass 8f46258
feat:add GitLab changed file data model
luisaferreirass f87a46c
feat: add GitLab commit differences data model
luisaferreirass 7a0b91b
feat: implementing getCommitFiles to GitlLabCommitQueryExecutor
luisaferreirass aa4c7b3
fix: renaming data model to pattern
luisaferreirass 1a69e26
feat: adding documentation comments
luisaferreirass f305b35
feat: adjusting classes names to pattern and adding documentation com…
luisaferreirass bf4370a
feat: adjusting github executors to updated class names and adding do…
luisaferreirass a81df10
feat: adjusting github test to updated class names
luisaferreirass 27bf540
feat: adjusting gitlab class names to pattern and adding documentatio…
luisaferreirass c2c3b92
feat: adjusting gitlab executors to updated class names and adding do…
luisaferreirass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/br/com/jadson/snooper/github/data/commit/GitHubFileChanged.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| package br.com.jadson.snooper.github.data.commit; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
|
||
| /** | ||
| * Information about a file changed in a GitHub commit. | ||
| * | ||
| * Luisa Ferreira - luisaferreirass08@gmail.com | ||
| */ | ||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||
| public class GitHubFileChanged { | ||
| public String filename; | ||
| public int additions; | ||
| public int deletions; | ||
| public int changes; | ||
| } |
25 changes: 25 additions & 0 deletions
25
src/main/java/br/com/jadson/snooper/github/data/repo/GitHubTreeInfo.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| package br.com.jadson.snooper.github.data.repo; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * Information about the file tree of a GitHub repository. | ||
| * | ||
| * Luisa Ferreira - luisaferreirass08@gmail.com | ||
| */ | ||
| public class GitHubTreeInfo { | ||
| public String sha; | ||
| public List<GitHubTreeItem> tree; | ||
|
|
||
| /** | ||
| * Information about an item in the GitHub repository tree. | ||
| * It can represent either a file or a directory. | ||
| * | ||
| * Luisa Ferreira - luisaferreirass08@gmail.com | ||
| */ | ||
| public static class GitHubTreeItem { | ||
| public String path; | ||
| public String type; // "blob" = arquivo, "tree" = diretório | ||
| public long size; | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/br/com/jadson/snooper/github/data/stats/GitHubFileStats.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package br.com.jadson.snooper.github.data.stats; | ||
|
|
||
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
|
|
||
| /** | ||
| * Churn (number of commits) information of a file in a GitHub repository. | ||
| * | ||
| * Luisa Ferreira - luisaferreirass08@gmail.com | ||
| */ | ||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||
| public class GitHubFileStats { | ||
| public String path; | ||
| public int churn; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,8 +4,15 @@ | |
| import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
| import java.util.List; | ||
|
|
||
|
|
||
| /** | ||
| * Commit history returned by the GitHub GraphQL API. | ||
| * | ||
| * Yuri Filgueira - yurimedeiros141@gmail.com | ||
| */ | ||
| @JsonIgnoreProperties(ignoreUnknown = true) | ||
| public class History { | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comentar que tipo de informação essa classe retorna |
||
| public PageInfo pageInfo; | ||
| public List<CommitStatsNode> nodes; | ||
| public int totalCount; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 12 additions & 6 deletions
18
src/main/java/br/com/jadson/snooper/github/data/stats/mapper/GitHubCommitStatsMapper.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comentar que tipo de informação essa classe retorna