Commit ae0e8a5
Add text-instead-badge option implementation (#235)
* Add text-instead-badge option to display coverage as text
Implemented the text-instead-badge input option to allow users to display
coverage information as plain text instead of badge images, matching the
functionality available in jest-coverage-comment.
- Added text-instead-badge input to action.yml (defaults to 'false')
- Updated src/index.js to read the new input option
- Modified src/parse.js toHtml function to show text format when enabled
- Text format displays as: XX% (covered/statements)
- Built dist/index.js with updated changes
* Fix text-instead-badge to use correct property names
Use total.stmts and total.miss instead of non-existent properties.
Calculate covered statements as (stmts - miss).
* docs: add text-instead-badge option to README
Add documentation for the new text-instead-badge input option:
- Added to Display Options table with description and default value
- Added usage example in Advanced Features section
- Explained benefits: no external dependencies, faster rendering, simpler appearance
* docs: enhance text-instead-badge documentation
- Add Complete Configuration section showing all parameters
- Add Text Mode example in Result Examples section with visual comparison
- Show text-instead-badge: false in complete configuration example
- Include benefits and use cases for text mode
- Match documentation style of jest-coverage-comment
* docs: simplify text-instead-badge documentation
Remove verbose benefits lists and keep documentation minimal
* docs: remove Complete Configuration section
* chore: bump version to 1.2.0 and update CHANGELOG
* feat: update CHANGELOG for version 1.2.0, add text-instead-badge option and automatic server URL detection
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent c026f3a commit ae0e8a5
8 files changed
Lines changed: 72 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
395 | 412 | | |
396 | 413 | | |
397 | 414 | | |
| |||
528 | 545 | | |
529 | 546 | | |
530 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
531 | 560 | | |
532 | 561 | | |
533 | 562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36953 | 36953 | | |
36954 | 36954 | | |
36955 | 36955 | | |
| 36956 | + | |
36956 | 36957 | | |
36957 | 36958 | | |
36958 | 36959 | | |
| |||
36963 | 36964 | | |
36964 | 36965 | | |
36965 | 36966 | | |
36966 | | - | |
| 36967 | + | |
| 36968 | + | |
| 36969 | + | |
| 36970 | + | |
36967 | 36971 | | |
36968 | 36972 | | |
36969 | 36973 | | |
| |||
39487 | 39491 | | |
39488 | 39492 | | |
39489 | 39493 | | |
| 39494 | + | |
| 39495 | + | |
| 39496 | + | |
39490 | 39497 | | |
39491 | 39498 | | |
39492 | 39499 | | |
| |||
39533 | 39540 | | |
39534 | 39541 | | |
39535 | 39542 | | |
| 39543 | + | |
39536 | 39544 | | |
39537 | 39545 | | |
39538 | 39546 | | |
| |||
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 | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
183 | 186 | | |
184 | 187 | | |
185 | 188 | | |
| |||
226 | 229 | | |
227 | 230 | | |
228 | 231 | | |
| 232 | + | |
229 | 233 | | |
230 | 234 | | |
231 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
| |||
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
207 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
| |||
0 commit comments