Skip to content

Commit

Permalink
#82: remove PRNumber, add custom card colors
Browse files Browse the repository at this point in the history
  • Loading branch information
iam-flo committed Sep 20, 2024
1 parent e887425 commit de37865
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ public class PullRequest extends BaseGitServiceEntity {
@NonNull
private String url;

@NonNull
private int prNumber;

/**
* State of the PullRequest.
* Does not include the state of the merge.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public PullRequest convert(@NonNull GHPullRequest source) {
pullRequest.setTitle(source.getTitle());
pullRequest.setUrl(source.getHtmlUrl().toString());
pullRequest.setState(state);
pullRequest.setPrNumber(source.getNumber());
pullRequest.setPullRequestLabels(convertLabels(source.getLabels()));
try {
pullRequest.setAdditions(source.getAdditions());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="border border-gray-300 rounded-lg p-4 w-72">
<div class="border border-border bg-card rounded-lg p-4 w-72">
<div class="flex justify-between items-center mb-2 text-xs text-gray-500">
<span class="font-bold flex justify-center items-center space-x-1">
<ng-icon [svg]="octGitPullRequest" size="16" class="mr-1"></ng-icon> {{ pullRequest().repository.name }} #{{ pullRequest().number }} on {{ pullRequest().createdAt }}
<ng-icon [svg]="octGitPullRequest" size="16" class="mr-1"></ng-icon> {{ pullRequest().repository?.name }} #{{ pullRequest().number }} on {{ pullRequest().createdAt }}
</span>
<span class="flex items-center space-x-2">
<span class="text-github-success-foreground font-bold">+{{ pullRequest().additions }}</span>
Expand Down

0 comments on commit de37865

Please sign in to comment.