redhat-et / copilot-ops

copilot-ops is a CLI tool that boosts up any DevOps repo to a ninja level of Artificially Intelligent Ops Repo
Apache License 2.0
34 stars 13 forks source link

use os.Stdout.WriteString instead of fmt.Printf #110

Closed RobotSail closed 1 year ago

RobotSail commented 1 year ago

This PR removes usage of fmt.Printf so that the linter passes & image builds. Signed-off-by: Oleg 97077423+RobotSail@users.noreply.github.com

codecov-commenter commented 1 year ago

Codecov Report

Base: 66.88% // Head: 58.04% // Decreases project coverage by -8.83% :warning:

Coverage data is based on head (113e055) compared to base (db0f2f2). Patch coverage: 39.03% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #110 +/- ## ========================================== - Coverage 66.88% 58.04% -8.84% ========================================== Files 7 8 +1 Lines 625 777 +152 ========================================== + Hits 418 451 +33 - Misses 188 298 +110 - Partials 19 28 +9 ``` | [Impacted Files](https://codecov.io/gh/redhat-et/copilot-ops/pull/110?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=redhat-et) | Coverage Δ | | |---|---|---| | [pkg/cmd/config/config.go](https://codecov.io/gh/redhat-et/copilot-ops/pull/110/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=redhat-et#diff-cGtnL2NtZC9jb25maWcvY29uZmlnLmdv) | `9.83% <3.57%> (+9.83%)` | :arrow_up: | | [pkg/ai/gpt3/gpt3.go](https://codecov.io/gh/redhat-et/copilot-ops/pull/110/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=redhat-et#diff-cGtnL2FpL2dwdDMvZ3B0My5nbw==) | `37.50% <37.50%> (ø)` | | | [pkg/cmd/generate.go](https://codecov.io/gh/redhat-et/copilot-ops/pull/110/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=redhat-et#diff-cGtnL2NtZC9nZW5lcmF0ZS5nbw==) | `67.64% <38.88%> (-18.61%)` | :arrow_down: | | [pkg/cmd/edit.go](https://codecov.io/gh/redhat-et/copilot-ops/pull/110/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=redhat-et#diff-cGtnL2NtZC9lZGl0Lmdv) | `62.68% <41.37%> (-20.34%)` | :arrow_down: | | [pkg/cmd/utils.go](https://codecov.io/gh/redhat-et/copilot-ops/pull/110/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=redhat-et#diff-cGtnL2NtZC91dGlscy5nbw==) | `75.20% <77.77%> (-3.56%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=redhat-et). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=redhat-et)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.