Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-anonymize-option
Browse files Browse the repository at this point in the history
  • Loading branch information
thschue committed Apr 11, 2023
2 parents 705d2a0 + 21dc61c commit fe502e1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
# Unless a later match takes precedence, these owners will be requested for
# review when someone opens a pull request.

* @k8sgpt-ai/maintainers
* @k8sgpt-ai/maintainers @k8sgpt-ai/k8sgpt-approvers
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Checkout
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3

- uses: google-github-actions/release-please-action@ee9822ec2c397e8a364d634464339ac43a06e042 # v3
- uses: google-github-actions/release-please-action@f7edb9e61420a022c0f1123edaf342d7e127df92 # v3
id: release
with:
command: manifest
Expand Down
6 changes: 5 additions & 1 deletion pkg/analysis/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ func (a *Analysis) GetAIResults(output string, anonymize bool) error {
}
parsedText, err := a.AIClient.Parse(a.Context, texts, a.NoCache)
if err != nil {
bar.Exit()
// FIXME: can we avoid checking if output is json multiple times?
// maybe implement the progress bar better?
if output != "json" {
bar.Exit()
}

// Check for exhaustion
if strings.Contains(err.Error(), "status code: 429") {
Expand Down

0 comments on commit fe502e1

Please sign in to comment.