mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-06-30 09:13:11 +00:00
Merge branch 'main' into feature/add-anonymize-option
This commit is contained in:
commit
fe502e1135
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@ -9,4 +9,4 @@
|
|||||||
# Unless a later match takes precedence, these owners will be requested for
|
# Unless a later match takes precedence, these owners will be requested for
|
||||||
# review when someone opens a pull request.
|
# review when someone opens a pull request.
|
||||||
|
|
||||||
* @k8sgpt-ai/maintainers
|
* @k8sgpt-ai/maintainers @k8sgpt-ai/k8sgpt-approvers
|
||||||
|
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
@ -25,7 +25,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3
|
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
|
id: release
|
||||||
with:
|
with:
|
||||||
command: manifest
|
command: manifest
|
||||||
|
@ -153,7 +153,11 @@ func (a *Analysis) GetAIResults(output string, anonymize bool) error {
|
|||||||
}
|
}
|
||||||
parsedText, err := a.AIClient.Parse(a.Context, texts, a.NoCache)
|
parsedText, err := a.AIClient.Parse(a.Context, texts, a.NoCache)
|
||||||
if err != nil {
|
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
|
// Check for exhaustion
|
||||||
if strings.Contains(err.Error(), "status code: 429") {
|
if strings.Contains(err.Error(), "status code: 429") {
|
||||||
|
Loading…
Reference in New Issue
Block a user