forked from lindell/multi-gitter
-
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.
feat: add possibility to add assignees to pull request (lindell#196)
the previous mapping in GitLab was reviewers -> assignees. It has now been corrected.
- Loading branch information
Showing
8 changed files
with
98 additions
and
28 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
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 |
---|---|---|
|
@@ -662,6 +662,31 @@ Repositories with a successful run: | |
`, runData.out) | ||
}, | ||
}, | ||
|
||
{ | ||
name: "assignees", | ||
vcCreate: func(t *testing.T) *vcmock.VersionController { | ||
return &vcmock.VersionController{ | ||
Repositories: []vcmock.Repository{ | ||
createRepo(t, "owner", "should-change", "i like apples"), | ||
}, | ||
} | ||
}, | ||
args: []string{ | ||
"run", | ||
"--author-name", "Test Author", | ||
"--author-email", "[email protected]", | ||
"-m", "custom message", | ||
"-a", "assignee1,assignee2", | ||
changerBinaryPath, | ||
}, | ||
verify: func(t *testing.T, vcMock *vcmock.VersionController, runData runData) { | ||
require.Len(t, vcMock.PullRequests, 1) | ||
require.Len(t, vcMock.PullRequests[0].Assignees, 2) | ||
assert.Contains(t, vcMock.PullRequests[0].Assignees, "assignee1") | ||
assert.Contains(t, vcMock.PullRequests[0].Assignees, "assignee2") | ||
}, | ||
}, | ||
} | ||
|
||
for _, gitBackend := range gitBackends { | ||
|