-
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.
♻️ Refactor applying or cancelling a commit
Applying or cancelling a quit now provides the commit state. This is necessary for adding the ability to store a cancelled commit for reuse. This requires identifying in the request whether to apply the commit and exiting early if the commit was cancelled.
- Loading branch information
1 parent
a40c8da
commit 5efd937
Showing
4 changed files
with
51 additions
and
12 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
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 |
---|---|---|
|
@@ -360,6 +360,7 @@ func TestModel(t *testing.T) { | |
want: want{ | ||
model: func(m ui.Model) { | ||
req := commit.Request{ | ||
Apply: true, | ||
Summary: "test", | ||
Author: repository.User{ | ||
Name: "John Doe", | ||
|
@@ -387,6 +388,7 @@ func TestModel(t *testing.T) { | |
want: want{ | ||
model: func(m ui.Model) { | ||
req := commit.Request{ | ||
Apply: true, | ||
Emoji: ":art:", | ||
Summary: "test", | ||
Author: repository.User{ | ||
|
@@ -416,6 +418,7 @@ func TestModel(t *testing.T) { | |
want: want{ | ||
model: func(m ui.Model) { | ||
req := commit.Request{ | ||
Apply: true, | ||
Summary: "test", | ||
Body: "test", | ||
Author: repository.User{ | ||
|
@@ -444,6 +447,7 @@ func TestModel(t *testing.T) { | |
want: want{ | ||
model: func(m ui.Model) { | ||
req := commit.Request{ | ||
Apply: true, | ||
Summary: "test", | ||
Footer: "Signed-off-by: John Doe <[email protected]>", | ||
Author: repository.User{ | ||
|
@@ -474,6 +478,7 @@ func TestModel(t *testing.T) { | |
want: want{ | ||
model: func(m ui.Model) { | ||
req := commit.Request{ | ||
Apply: true, | ||
Summary: "test", | ||
Author: repository.User{ | ||
Name: "John Doe", | ||
|
@@ -577,6 +582,7 @@ func TestModel(t *testing.T) { | |
want: want{ | ||
model: func(m ui.Model) { | ||
req := commit.Request{ | ||
Apply: true, | ||
Emoji: ":art:", | ||
Summary: "test", | ||
Author: repository.User{ | ||
|
@@ -608,6 +614,7 @@ func TestModel(t *testing.T) { | |
want: want{ | ||
model: func(m ui.Model) { | ||
req := commit.Request{ | ||
Apply: true, | ||
Emoji: "🎨", | ||
Summary: "test", | ||
Author: repository.User{ | ||
|