From 6e1a3e409a4614400696ebb0163c421f01b1f43e Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 1 Nov 2020 16:22:27 +0000 Subject: [PATCH] wip: update exposed structs in preparation for whole commit parsing --- pkg/commit/commit.go | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/pkg/commit/commit.go b/pkg/commit/commit.go index 0f31f73..f141b13 100644 --- a/pkg/commit/commit.go +++ b/pkg/commit/commit.go @@ -3,16 +3,22 @@ package commit type Commit struct { - Type string - Scope string - Subject string - Body string - Footers []*Footer - IsBreaking bool + Type string + Scope string + Subject string + Body string + Footers []*Footer + References []*Reference + BreakingChanges []string + IsBreaking bool } type Footer struct { - Name string - Body string - Reference bool + Name string + Value string +} + +type Reference struct { + Name string + Value string }