Skip to content

Commit f0548de

Browse files
authored
Add headers for FindCommitters data tables (#3956)
1 parent fc0cbf1 commit f0548de

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

rewrite-core/src/main/java/org/openrewrite/table/CommitsByDay.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.openrewrite.table;
1717

1818
import lombok.Value;
19+
import org.openrewrite.Column;
1920
import org.openrewrite.DataTable;
2021
import org.openrewrite.Recipe;
2122

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

3233
@Value
3334
public static class Row {
35+
@Column(displayName = "Name",
36+
description = "The name of the committer.")
3437
String name;
38+
@Column(displayName = "Email",
39+
description = "The email of the committer.")
3540
String email;
41+
@Column(displayName = "Date",
42+
description = "The date of the day.")
3643
LocalDate day;
44+
@Column(displayName = "Number of commits",
45+
description = "The number of commits made by this committer on this day.")
3746
int commits;
3847
}
3948
}

rewrite-core/src/main/java/org/openrewrite/table/DistinctCommitters.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package org.openrewrite.table;
1717

1818
import lombok.Value;
19+
import org.openrewrite.Column;
1920
import org.openrewrite.DataTable;
2021
import org.openrewrite.Recipe;
2122

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

3233
@Value
3334
public static class Row {
35+
@Column(displayName = "Name",
36+
description = "The name of the committer.")
3437
String name;
38+
@Column(displayName = "Email",
39+
description = "The email of the committer.")
3540
String email;
41+
@Column(displayName = "Last commit",
42+
description = "The date of this committer's last commit.")
3643
LocalDate lastCommit;
44+
@Column(displayName = "Number of commits",
45+
description = "The number of commits made by this committer.")
3746
int commits;
3847
}
3948
}

0 commit comments

Comments
 (0)