-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add fallback to environment variables 43 (#57)
* feat: add fallback to environment variables, close #43 * chore: merging git and env fields * chore: bring mocked-env for better testing * use Ramda mergeWith * feat: combine git and env variables, tested * chore: better readme text
- Loading branch information
Showing
9 changed files
with
260 additions
and
81 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
exports['commit-info returns information 1'] = { | ||
exports['commit-info combination with environment variables has certain api 1'] = [ | ||
"commitInfo", | ||
"getBranch", | ||
"getMessage", | ||
"getEmail", | ||
"getAuthor", | ||
"getSha", | ||
"getRemoteOrigin", | ||
"getSubject", | ||
"getBody" | ||
] | ||
|
||
exports['commit-info combination with environment variables returns information 1'] = { | ||
"branch": "test-branch", | ||
"message": "important commit", | ||
"email": "me@foo.com", | ||
"message": "some git message", | ||
"email": "user@company.com", | ||
"author": "John Doe", | ||
"sha": "abc123", | ||
"remote": "[email protected]/repo" | ||
} | ||
|
||
exports['commit-info has certain api 1'] = [ | ||
exports['commit-info no environment variables has certain api 1'] = [ | ||
"commitInfo", | ||
"getBranch", | ||
"getMessage", | ||
|
@@ -19,7 +31,16 @@ exports['commit-info has certain api 1'] = [ | |
"getBody" | ||
] | ||
|
||
exports['commit-info returns empty strings for missing info 1'] = { | ||
exports['commit-info no environment variables returns information 1'] = { | ||
"branch": "test-branch", | ||
"message": "important commit", | ||
"email": "[email protected]", | ||
"author": "John Doe", | ||
"sha": "abc123", | ||
"remote": "[email protected]/repo" | ||
} | ||
|
||
exports['commit-info no environment variables returns nulls for missing fields 1'] = { | ||
"branch": "test-branch", | ||
"message": null, | ||
"email": "[email protected]", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.