{"id":15062518,"url":"https://github.com/raulanatol/jest-coverage-comment-action","last_synced_at":"2025-06-16T15:11:36.085Z","repository":{"id":38238446,"uuid":"302735437","full_name":"raulanatol/jest-coverage-comment-action","owner":"raulanatol","description":"Comments a PR with the coverage (jest)","archived":false,"fork":false,"pushed_at":"2022-06-08T15:04:03.000Z","size":2543,"stargazers_count":12,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-31T20:16:10.709Z","etag":null,"topics":["action","coverage","coverage-report","github-actions","jest","pull-request"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raulanatol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2020-10-09T19:28:52.000Z","updated_at":"2024-11-01T00:29:29.000Z","dependencies_parsed_at":"2023-01-11T17:21:28.723Z","dependency_job_id":null,"html_url":"https://github.com/raulanatol/jest-coverage-comment-action","commit_stats":{"total_commits":101,"total_committers":7,"mean_commits":"14.428571428571429","dds":0.4257425742574258,"last_synced_commit":"7e7dbbddf31b33f2a0663b71c7db2dd6b76801fc"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":"raulanatol/template-action-nodejs-ts","purl":"pkg:github/raulanatol/jest-coverage-comment-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulanatol%2Fjest-coverage-comment-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulanatol%2Fjest-coverage-comment-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulanatol%2Fjest-coverage-comment-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulanatol%2Fjest-coverage-comment-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raulanatol","download_url":"https://codeload.github.com/raulanatol/jest-coverage-comment-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raulanatol%2Fjest-coverage-comment-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259971378,"owners_count":22940011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","coverage","coverage-report","github-actions","jest","pull-request"],"created_at":"2024-09-24T23:41:55.354Z","updated_at":"2025-06-16T15:11:36.064Z","avatar_url":"https://github.com/raulanatol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003ch1\u003ejest-coverage-comment-action\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp\u003eComments a PR with the coverage (jest)\u003c/p\u003e\n\n![message](./docs/message.png)\n\n---\n\n# Inputs\n\n## `github-token`\n\n**Required** The github token to comment in the PR.\n\n## `jest-command`\n\n**Optional** The command used to generate the coverage. Default: `npx jest --coverage`\n\n## `only-changes`\n\n**Optional** Add parameter to show the coverage only for the changed files. Default: `true`\n\n## `working-directory`\n\n**Optional** The command used to generate the coverage. Default: `''`\n\n## `delete-previous`\n\n**Optional** Delete previous comments before adding a new one. Default: `true`\n\n## `use-existing-reports`\n\n**Optional** If already exists a coverage report the action uses it and doesn't run tests again. Default: `false`\n\n# Example of usage\n\n```yaml\nuses: raulanatol/jest-coverage-comment-action@main\nwith:\n  github-token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n# Example using a custom jest command and working directory\n\n**.github/workflows/main.yml**\n\n```yaml\non: pull_request\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Hello world action step\n        id: hello\n        uses: raulanatol/jest-coverage-comment-action@main\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          jest-command: 'npm run jest-ci'\n          working-directory: 'packages/my-package'\n```\n\n# Development\n\n## Close release\n\nTo close a release you only need to execute the makefile with `release_{major|minor|patch}`\n\nExample:\n\n```shell script\nmake release_minor\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulanatol%2Fjest-coverage-comment-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraulanatol%2Fjest-coverage-comment-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulanatol%2Fjest-coverage-comment-action/lists"}