-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Profile Pages with User Activity and PRs (#115)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Felix T.J. Dietrich <[email protected]> Co-authored-by: Felix T.J. Dietrich <[email protected]>
- Loading branch information
1 parent
d08c7f4
commit 511c515
Showing
45 changed files
with
1,256 additions
and
187 deletions.
There are no files selected for viewing
This file contains 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 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 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
28 changes: 23 additions & 5 deletions
28
...server/src/main/java/de/tum/in/www1/hephaestus/codereview/pullrequest/PullRequestDTO.java
This file contains 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 |
---|---|---|
@@ -1,18 +1,36 @@ | ||
package de.tum.in.www1.hephaestus.codereview.pullrequest; | ||
|
||
import java.time.OffsetDateTime; | ||
import java.util.Set; | ||
|
||
import org.springframework.lang.NonNull; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
|
||
import de.tum.in.www1.hephaestus.codereview.comment.IssueCommentDTO; | ||
import de.tum.in.www1.hephaestus.codereview.repository.RepositoryDTO; | ||
import de.tum.in.www1.hephaestus.codereview.user.UserDTO; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_EMPTY) | ||
public record PullRequestDTO(Long id, String title, String url, IssueState state, String createdAt, String updatedAt, | ||
String mergedAt, UserDTO author, Set<IssueCommentDTO> comments, RepositoryDTO repository) { | ||
public PullRequestDTO(Long id, String title, String url, IssueState state, String createdAt, String updatedAt, | ||
String mergedAt) { | ||
this(id, title, url, state, createdAt, updatedAt, mergedAt, null, null, null); | ||
public record PullRequestDTO(@NonNull Long id, @NonNull String title, @NonNull Integer number, @NonNull String url, | ||
@NonNull IssueState state, @NonNull Integer additions, @NonNull Integer deletions, | ||
@NonNull OffsetDateTime createdAt, @NonNull OffsetDateTime updatedAt, OffsetDateTime mergedAt, | ||
UserDTO author, Set<IssueCommentDTO> comments, Set<PullRequestLabel> labels, RepositoryDTO repository) { | ||
public PullRequestDTO(@NonNull Long id, @NonNull String title, @NonNull Integer number, @NonNull String url, | ||
@NonNull IssueState state, @NonNull Integer additions, @NonNull Integer deletions, | ||
@NonNull OffsetDateTime createdAt, @NonNull OffsetDateTime updatedAt, OffsetDateTime mergedAt) { | ||
this(id, title, number, url, state, additions, deletions, createdAt, updatedAt, mergedAt, null, null, | ||
null, | ||
null); | ||
} | ||
|
||
public PullRequestDTO(@NonNull Long id, @NonNull String title, @NonNull Integer number, @NonNull String url, | ||
@NonNull IssueState state, @NonNull Integer additions, | ||
@NonNull Integer deletions, @NonNull OffsetDateTime createdAt, | ||
@NonNull OffsetDateTime updatedAt, OffsetDateTime mergedAt, | ||
@NonNull Set<PullRequestLabel> labels, | ||
@NonNull RepositoryDTO repository) { | ||
this(id, title, number, url, state, additions, deletions, createdAt, updatedAt, mergedAt, null, null, | ||
labels, repository); | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
...rver/src/main/java/de/tum/in/www1/hephaestus/codereview/pullrequest/PullRequestLabel.java
This file contains 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 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 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 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 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 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 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.