Commit c44cc24
committed
Address Copilot PR review: reject unknown archive formats, fix case-sensitive check
- Add explanatory comment to empty except KeyError block in _extract_workflow_yml
- Use case-insensitive extension matching for local archive detection in workflow add
- Reject unknown archive formats with clear error messages instead of silently
defaulting to ZIP in preset add --from, extension add --from, download_extension(),
and download_pack()1 parent 0c6cc45 commit c44cc24
3 files changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2643 | 2643 | | |
2644 | 2644 | | |
2645 | 2645 | | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
2646 | 2651 | | |
2647 | 2652 | | |
2648 | 2653 | | |
| |||
3652 | 3657 | | |
3653 | 3658 | | |
3654 | 3659 | | |
| 3660 | + | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
3655 | 3665 | | |
3656 | 3666 | | |
3657 | 3667 | | |
| |||
4936 | 4946 | | |
4937 | 4947 | | |
4938 | 4948 | | |
4939 | | - | |
| 4949 | + | |
4940 | 4950 | | |
4941 | 4951 | | |
4942 | 4952 | | |
| |||
5099 | 5109 | | |
5100 | 5110 | | |
5101 | 5111 | | |
5102 | | - | |
| 5112 | + | |
5103 | 5113 | | |
5104 | 5114 | | |
5105 | 5115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2151 | 2151 | | |
2152 | 2152 | | |
2153 | 2153 | | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
2154 | 2159 | | |
2155 | 2160 | | |
2156 | 2161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2331 | 2331 | | |
2332 | 2332 | | |
2333 | 2333 | | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
2334 | 2339 | | |
2335 | 2340 | | |
2336 | 2341 | | |
| |||
0 commit comments