forked from complytime/trestle-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replaces 'check_only' with 'dry_run' option (complytime#195)
* feat: replace check_only with dry_run options in entrypoint base BREAKING CHANGE: The check_only flag is no longer available * feat: adds dry-run to action files and READMEs Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * feat: adds reported changes for dry-run mode Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * test: refines test_bot.py test cases Add more granular tests for dry run and reduces duplication Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * feat: adds a classes for reporting results to the console Abstracts reporting results to the console to different class and out of the entrypoint base class to allow it to extend more easily and be used in different places in the code base. Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * feat: updates reports to include CI specific console reporting GitHub Actions and GitLab CI has specific formatting features that can be used to enhance the output. Also the GitHub Actions output setting has been moved to this report to remove the need to parse logs in bash Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * test: adds unit tests for ResultsReport class Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * test: adds unit tests for GitHubActionsResultsReporter class Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * test: adds unit tests for GitLabCIResultsReporter class This also refines the function through the TDD process Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * docs: updates docs to remove check_only references Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * refactor: adds local commit to dry run For more comprehensiveness, adding local commit and not push to remote in dry run feature and added change type for more detailed change reports. Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * docs: adds example to autosync docs for failure on changes This can be used in the release notes to show users how to migrate from check_only Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * docs: refines doc strings for results reporting classes Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com> * docs: updates docstrings and README.md on dry run --------- Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
- Loading branch information
Showing
24 changed files
with
441 additions
and
178 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
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
Oops, something went wrong.