@@ -271,6 +271,22 @@ your workflow:
271271 if: always()
272272` ` `
273273
274+ # ## Generating a Community Built Report
275+
276+ To use a community built report, add the `community` command to your workflow
277+ and the name of the report template :
278+
279+ ` ` ` yaml
280+ - name: Publish CTRF Community Report
281+ run:
282+ npx github-actions-ctrf community path-to-your-ctrf-report.json
283+ report-template-name
284+ if: always()
285+ ` ` `
286+
287+ See the available [community reports](community-reports), or
288+ [add your own](#how-to-contribute-your-own-reports).
289+
274290# ## Post a Pull Request Comment
275291
276292To post a comment on the pull request with test results, add the `pull-request`
@@ -401,8 +417,8 @@ current workflow and job names:
401417
402418Filtering is applied as follows :
403419
404- - Runs from the same branch for events of type push, schedule and workflow_dispatch from the same
405- workflow id
420+ - Runs from the same branch for events of type push, schedule and
421+ workflow_dispatch from the same workflow id
406422- Runs from the same pull request for events of type pull_request from the same
407423 workflow id
408424
@@ -496,6 +512,10 @@ When writing your template, you can use several special Handlebars helpers:
496512
497513- `{{eq arg1 arg2}}` : Compares two arguments and returns true if they are equal.
498514
515+ See available helpers [here](src/handlebars/helpers).
516+
517+ We welcome contributions for additional helpers.
518+
499519# ## Available Properties
500520
501521All CTRF properties are accessible via the ctrf property in your template.
@@ -528,7 +548,47 @@ The following GitHub properties are available:
528548# ## Template Example
529549
530550For inspiration on what you can create, check out the
531- [example template](templates/custom-summary.hbs)
551+ [built-in reports](src/reports) and [community reports](community-reports)
552+
553+ # ## Community Reports
554+
555+ We welcome and encourage contributions of community-built reports. Community
556+ reports allow users to share custom Handlebars templates designed for specific
557+ use cases or unique report styles.
558+
559+ # ### How To Contribute Your Own Reports
560+
561+ 1. **Fork the Repository**
562+ Start by forking this repository to your GitHub account.
563+
564+ 2. **Create a New Report Folder**
565+ Navigate to the `community-reports` directory and create a new folder named
566+ after your report (e.g., `my-custom-report`).
567+
568+ 3. **Include the Following Files**
569+ Your report folder should include :
570+
571+ - **`my-custom-report.hbs`**: Your Handlebars template file. This is the core
572+ of your report.
573+ - **`README.md`**: Documentation about your report. Include the following
574+ details :
575+ - The purpose of your template.
576+ - Instructions on how to use it.
577+ - Any important considerations (e.g., required CTRF report properties).
578+ - Example output
579+
580+ 4. **Submit a Pull Request**
581+ Once your report is ready, submit a pull request with a brief description of
582+ your contribution. We will review it and provide feedback if necessary.
583+
584+ # ### Guidelines for Creating a Good Community Report
585+
586+ - **Be Descriptive**: Ensure your `README.md` clearly explains the report's
587+ purpose, usage, and any special requirements.
588+ - **Follow the Template Structure**: Maintain consistency with other community
589+ reports in the repository.
590+ - **Keep It Useful**: Focus on templates that solve common problems or address
591+ specific needs.
532592
533593# # Calculations
534594
0 commit comments