Skip to content

Add ability to toggle a collapsible sectionΒ #368

@alxmrtn

Description

@alxmrtn

Feature Request

Provide an option to wrap the markdown table in a <details></details> tag to create a collapsible section in the markdown.

Expected Behaviour

  • Setting something like setting collapsible to true in the parameters
  • Keeps the badge outside of the collapsible section, so you can get a high level overview

Additional Context

Currently doing this

    - name: Add Coverage Report to Step Summary
      run: |
        echo "# Code Coverage Summary" >> $GITHUB_STEP_SUMMARY
        echo "<details><summary>Expand for details</summary>" >> $GITHUB_STEP_SUMMARY
        echo "" >> $GITHUB_STEP_SUMMARY
        cat code-coverage-results.md >> $GITHUB_STEP_SUMMARY
        echo "" >> $GITHUB_STEP_SUMMARY
        echo "</details>" >> $GITHUB_STEP_SUMMARY

which isn't bad, but I'd love for the badge to be outside of the details section

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions