Skip to content

Commit

Permalink
Add headers for FindCommitters data tables (#3956)
Browse files Browse the repository at this point in the history
  • Loading branch information
pstreef authored Jan 29, 2024
1 parent fc0cbf1 commit f0548de
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.openrewrite.table;

import lombok.Value;
import org.openrewrite.Column;
import org.openrewrite.DataTable;
import org.openrewrite.Recipe;

Expand All @@ -31,9 +32,17 @@ public CommitsByDay(Recipe recipe) {

@Value
public static class Row {
@Column(displayName = "Name",
description = "The name of the committer.")
String name;
@Column(displayName = "Email",
description = "The email of the committer.")
String email;
@Column(displayName = "Date",
description = "The date of the day.")
LocalDate day;
@Column(displayName = "Number of commits",
description = "The number of commits made by this committer on this day.")
int commits;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package org.openrewrite.table;

import lombok.Value;
import org.openrewrite.Column;
import org.openrewrite.DataTable;
import org.openrewrite.Recipe;

Expand All @@ -31,9 +32,17 @@ public DistinctCommitters(Recipe recipe) {

@Value
public static class Row {
@Column(displayName = "Name",
description = "The name of the committer.")
String name;
@Column(displayName = "Email",
description = "The email of the committer.")
String email;
@Column(displayName = "Last commit",
description = "The date of this committer's last commit.")
LocalDate lastCommit;
@Column(displayName = "Number of commits",
description = "The number of commits made by this committer.")
int commits;
}
}

0 comments on commit f0548de

Please sign in to comment.