Commit 37f1351
[jsweep] Clean add_labels.cjs (#9005)
* jsweep: Clean add_labels.cjs
- Simplified item number determination with ternary expression
- Consolidated error handling for invalid/missing item numbers
- Removed unnecessary intermediate variables
- Used spread operator for context.repo
- Used shorthand property for contextType
- Created comprehensive test file with 13 test cases
- Reduced from 146 to 133 lines (13 lines saved)
* Fix add_labels.test.cjs test framework and empty labels behavior (#9006)
* Initial plan
* Fix add_labels.test.cjs to use vitest and fix empty labels test expectation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Apply prettier formatting to add_labels.cjs (single-line ternary expressions)
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Add changeset [skip-ci]
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>1 parent 202c02e commit 37f1351
File tree
3 files changed
+366
-31
lines changed- .changeset
- actions/setup/js
3 files changed
+366
-31
lines changedSome 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 | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | 50 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
76 | 60 | | |
77 | 61 | | |
78 | | - | |
79 | 62 | | |
80 | | - | |
81 | | - | |
| 63 | + | |
82 | 64 | | |
83 | 65 | | |
84 | 66 | | |
| |||
118 | 100 | | |
119 | 101 | | |
120 | 102 | | |
121 | | - | |
122 | | - | |
| 103 | + | |
123 | 104 | | |
124 | 105 | | |
125 | 106 | | |
| |||
130 | 111 | | |
131 | 112 | | |
132 | 113 | | |
133 | | - | |
| 114 | + | |
134 | 115 | | |
135 | 116 | | |
136 | 117 | | |
| |||
0 commit comments