This updates the handling of how we output log messages to the console
to instead of blindly outputting warning messages to stderr all the
time, it will instead check if an environment variable called CI is
available and set to true, or the user themself have specified the
--ci argument.
When CI system is detected, any warnings will instead be outputted to
the normal stdout along with normal informational messages.
Related Issue
fixes #439
Motivation and Context
Certain CI systems out there will abort the build every time something is written to stderr. This causes problems on these systems when GitReleaseManager is ran.
How Has This Been Tested?
On a repository, create a milestone with a valid version and one that does not contain any versions.
Run grm create 2>files.txt with the appropriate arguments for the valid version, and ensure no warnings is displayed in the console.
Open files.txt and ensure the warnings are located in the file (A warning about the invalid version should be in the file).
Delete files.txt, and run grm create --ci 2>files.txt with the appropriate arguments for the valid version, and ensure the warnings is now displayed in the console.
Open files.txt and ensure the warnings of the invalid version is not located in the file.
Screenshots (if appropriate):
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
This updates the handling of how we output log messages to the console to instead of blindly outputting warning messages to stderr all the time, it will instead check if an environment variable called
CI
is available and set to true, or the user themself have specified the--ci
argument.When CI system is detected, any warnings will instead be outputted to the normal stdout along with normal informational messages.
Related Issue
fixes #439
Motivation and Context
Certain CI systems out there will abort the build every time something is written to stderr. This causes problems on these systems when GitReleaseManager is ran.
How Has This Been Tested?
grm create 2>files.txt
with the appropriate arguments for the valid version, and ensure no warnings is displayed in the console.grm create --ci 2>files.txt
with the appropriate arguments for the valid version, and ensure the warnings is now displayed in the console.Screenshots (if appropriate):
Checklist: