{"id":18522268,"url":"https://github.com/poorlydefinedbehaviour/nyc-reporter","last_synced_at":"2025-09-09T23:32:32.123Z","repository":{"id":56317639,"uuid":"312112060","full_name":"PoorlyDefinedBehaviour/nyc-reporter","owner":"PoorlyDefinedBehaviour","description":"Github action that comments test coverage on pull request","archived":false,"fork":false,"pushed_at":"2022-08-22T18:38:29.000Z","size":30261,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-14T18:10:01.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/PoorlyDefinedBehaviour.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":null,"security":null,"support":null}},"created_at":"2020-11-11T23:06:11.000Z","updated_at":"2020-11-14T22:04:28.000Z","dependencies_parsed_at":"2023-01-04T12:30:50.165Z","dependency_job_id":null,"html_url":"https://github.com/PoorlyDefinedBehaviour/nyc-reporter","commit_stats":{"total_commits":63,"total_committers":1,"mean_commits":63.0,"dds":0.0,"last_synced_commit":"4dfe01b0c7f6fa93d7194a3c2d23c4db76e2390e"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoorlyDefinedBehaviour%2Fnyc-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoorlyDefinedBehaviour%2Fnyc-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoorlyDefinedBehaviour%2Fnyc-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PoorlyDefinedBehaviour%2Fnyc-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PoorlyDefinedBehaviour","download_url":"https://codeload.github.com/PoorlyDefinedBehaviour/nyc-reporter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198512,"owners_count":22030966,"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":[],"created_at":"2024-11-06T17:29:40.594Z","updated_at":"2025-05-14T18:10:26.477Z","avatar_url":"https://github.com/PoorlyDefinedBehaviour.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\n\nRuns test command with nyc and posts coverage to pull request comments\n\n- nyc must be listed as a dependencie on your package.json\n\n## Inputs\n\n### `command` **Required**\n\nCommand to run the tests \u003c/br\u003e\nExample: `\"yarn test\"`\n\n### `GITHUB_TOKEN`\n\nThe GITHUB_TOKEN secret \u003c/br\u003e\nDefault: `${{ github.token }}`\n\n## Example usage\n\n```yaml\nname: \"Code quality\"\non: [pull_request]\n\njobs:\n  check:\n    runs-on: ubuntu-latest\n\n    strategy:\n      matrix:\n        node-version: [12.x]\n\n    steps:\n      - uses: actions/checkout@v2\n\n      - name: Use Node.js ${{ matrix.node-version }}\n        uses: actions/setup-node@v1\n        with:\n          node-version: ${{ matrix.node-version }}\n\n      - uses: bahmutov/npm-install@v1\n\n      - name: Report test coverage\n        uses: PoorlyDefinedBehaviour/nyc-reporter@v1\n        with:\n          command: \"yarn test\"\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Preview\n\n![Preview](./assets/nyc_reporter_preview.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoorlydefinedbehaviour%2Fnyc-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoorlydefinedbehaviour%2Fnyc-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoorlydefinedbehaviour%2Fnyc-reporter/lists"}