Repository navigation
Commit d571556
committed
Add error messages and improve cancellation handling for API commit message generation
- when received empty response or failing, we're showing configurations again - that's correct but there are missing a notifications informing the user about empty/failed response. Use 2 distinct messages for each.
└── apps
└── editor
└── src
├── commands
│ └── generate-commit-message-commands
│ ├── actions
│ │ ├── get-prompt-data.ts
│ │ └── run-generate-action.ts
│ ├── generate-commit-message-commands.ts
│ ├── index.ts
│ └── utils
│ ├── build-commit-message-prompt.ts
│ ├── generate-commit-message-with-api.ts
│ ├── get-commit-message-config.ts
│ └── strip-wrapping-quotes.ts
├── i18n
│ └── translations
│ └── commands
│ └── generate-commit-message.ts
└── utils
└── git-repository-utils.ts1 parent 407655e commit d571556
2 files changed
Lines changed: 51 additions & 2 deletions
File tree
- apps/editor/src
- commands/generate-commit-message-commands/actions
- i18n/translations/commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
367 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
368 | 371 | | |
369 | 372 | | |
370 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
371 | 383 | | |
372 | 384 | | |
373 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
364 | 401 | | |
365 | 402 | | |
0 commit comments