-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Nr18/feat/auto-merge
feat: implement auto-merge feature
- Loading branch information
Showing
7 changed files
with
189 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
COMMIT2 = """commit my-hash-1 | ||
Author: John Doe <john@doe.nl> | ||
Date: Fri Jan 21 21:01:00 2022 +0100 | ||
feat: my first commit""" | ||
|
||
COMMIT1 = """commit my-hash-2 | ||
Author: John Doe <john@doe.nl> | ||
Date: Fri Jan 21 21:01:00 2022 +0100 | ||
feat: my second commit""" | ||
|
||
COMMITS = f"{COMMIT1}\n\n Issue #1\n\n{COMMIT2}\n\n Issue #2" | ||
COMMITS_NO_ISSUES = f"{COMMIT1}\n\n{COMMIT2}" | ||
|
||
SCENARIOS = [ | ||
( | ||
"codecommit::eu-west-1://my-profile@my-repository", | ||
"eu-west-1", | ||
"my-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit::eu-west-1://my-profile@my-repository", | ||
"eu-central-1", | ||
"my-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS_NO_ISSUES, | ||
), | ||
( | ||
"codecommit::eu-west-1://my-profile@my-repository", | ||
"eu-west-1", | ||
"my-other-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS_NO_ISSUES, | ||
), | ||
( | ||
"codecommit::eu-west-1://my-profile@my-repository", | ||
"eu-central-1", | ||
"my-other-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit::eu-west-1://my-repository", | ||
"eu-central-1", | ||
None, | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit::://my-profile@my-repository", | ||
None, | ||
"my-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit::://my-repository", | ||
None, | ||
None, | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit://my-profile@my-repository", | ||
None, | ||
"my-profile", | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
( | ||
"codecommit://my-repository", | ||
None, | ||
None, | ||
b"[default]\nbranch: my-main\n[profile my-profile]\nbranch: my-master", | ||
COMMITS, | ||
), | ||
] |
Oops, something went wrong.