Commit b210d62
fix: propagate auth errors from getWorkItemTitle and short-circuit run() on addWorkItemsToPRBody auth failure (#186)
* fix: propagate auth errors from getWorkItemTitle and short-circuit run() on addWorkItemsToPRBody auth failure
Resolves #169: getWorkItemTitle() now uses detectAuthError() to identify
auth errors (401, 403, expired PAT) and returns { authError, errorMessage }
instead of silently returning null.
Resolves #172: addWorkItemsToPRBody() now returns { authError: true } on
auth failure so run() can short-circuit instead of continuing to execute
subsequent commit/PR checks.
Agent-Logs-Url: https://github.com/joshjohanning/azdo_commit_message_validator/sessions/6edbda9a-8711-4a1c-911d-58f076d74159
Co-authored-by: joshjohanning <19912012+joshjohanning@users.noreply.github.com>
* fix: change version bump from minor (4.2.0) to patch (4.1.2) since this is a bug fix
Agent-Logs-Url: https://github.com/joshjohanning/azdo_commit_message_validator/sessions/572dd5a6-60c2-48b1-bb60-11bd36236059
Co-authored-by: joshjohanning <19912012+joshjohanning@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: joshjohanning <19912012+joshjohanning@users.noreply.github.com>1 parent d8df56a commit b210d62
7 files changed
Lines changed: 107 additions & 12 deletions
File tree
- __tests__
- badges
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2820 | 2820 | | |
2821 | 2821 | | |
2822 | 2822 | | |
2823 | | - | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
2824 | 2859 | | |
2825 | 2860 | | |
2826 | 2861 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 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 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
370 | 408 | | |
371 | 409 | | |
372 | 410 | | |
| |||
Loading
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
152 | 157 | | |
153 | 158 | | |
154 | 159 | | |
| |||
675 | 680 | | |
676 | 681 | | |
677 | 682 | | |
678 | | - | |
| 683 | + | |
679 | 684 | | |
680 | 685 | | |
681 | 686 | | |
| |||
684 | 689 | | |
685 | 690 | | |
686 | 691 | | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
687 | 698 | | |
688 | 699 | | |
689 | 700 | | |
| |||
728 | 739 | | |
729 | 740 | | |
730 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
731 | 747 | | |
732 | 748 | | |
733 | 749 | | |
| |||
828 | 844 | | |
829 | 845 | | |
830 | 846 | | |
| 847 | + | |
831 | 848 | | |
832 | 849 | | |
833 | 850 | | |
| |||
891 | 908 | | |
892 | 909 | | |
893 | 910 | | |
894 | | - | |
| 911 | + | |
895 | 912 | | |
896 | 913 | | |
897 | 914 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
236 | 241 | | |
237 | 242 | | |
238 | 243 | | |
0 commit comments