{"id":27065885,"url":"https://github.com/elilillyco/github-actions-post-to-pr","last_synced_at":"2025-04-05T18:34:28.624Z","repository":{"id":42442635,"uuid":"263920707","full_name":"EliLillyCo/github-actions-post-to-pr","owner":"EliLillyCo","description":"Github Actions Post to Pull Request with Previous Build Result Comparison","archived":false,"fork":false,"pushed_at":"2025-02-18T19:17:04.000Z","size":2012,"stargazers_count":6,"open_issues_count":9,"forks_count":6,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-03-06T14:21:37.341Z","etag":null,"topics":["actions","github","node"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/EliLillyCo.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-05-14T13:20:02.000Z","updated_at":"2025-02-20T18:58:48.000Z","dependencies_parsed_at":"2024-02-01T14:44:49.883Z","dependency_job_id":null,"html_url":"https://github.com/EliLillyCo/github-actions-post-to-pr","commit_stats":{"total_commits":44,"total_committers":4,"mean_commits":11.0,"dds":0.25,"last_synced_commit":"d996406fdc6247f6b911c3c27636afbfd41615c2"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliLillyCo%2Fgithub-actions-post-to-pr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliLillyCo%2Fgithub-actions-post-to-pr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliLillyCo%2Fgithub-actions-post-to-pr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EliLillyCo%2Fgithub-actions-post-to-pr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EliLillyCo","download_url":"https://codeload.github.com/EliLillyCo/github-actions-post-to-pr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247384819,"owners_count":20930535,"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":["actions","github","node"],"created_at":"2025-04-05T18:34:28.134Z","updated_at":"2025-04-05T18:34:28.589Z","avatar_url":"https://github.com/EliLillyCo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Actions Post to Pull Request\n\nThis github actions allows easy posting of formatted build results into GitHub PRs.\n\n## Setup\nDurring the github action build, create a build output text file.\n\n```\nyour build command | tee output.txt\n```\n\nInlcude the Post to PR github action step.\n\n```\n    - name: \"Post to PR\"\n      uses: EliLillyCo/github-actions-post-to-pr@main\n      with:\n        github_token: ${{ secrets.GITHUB_TOKEN }}\n        post_to_pr_definition: |\n          [\n            {\n              \"message_file\": \"./output.txt\",\n              \"title\": \"My Test Execution\"\n            }\n          ]\n```\n\n\nThis will create a pull request comment such as the one below.\n\nAdditional optional arguments are available to customize the pull request output\n```\n[\n  {\n    \"message_file\": \"./output.txt\",\n    \"title\": \"My Test Execution\",\n    \"artifact_name\": \"defaults to title\", // OPTIONAL: Defaults to title stripped of non-alphanumeric characters/spaces\n    \"modifier\": \"grep 'onlytheselines'\", // OPTIONAL: Shell command which will be executed against the output file.  This can be used to prevent long pull request messages.\n    \"collapsible\": true // OPTIONAL: true/false, set to true to make PR message collapse for long messages, defaults to False\n  }\n]\n```\n\n\n\n# --- Example Pull Request Comment ---\n\n# Unit Test\n\n## This change:\n\n```\n\n\u003e post-to-pr@0.0.1 test /home/runner/work/github-actions-post-to-pr/github-actions-post-to-pr\n\u003e eslint *.js \u0026\u0026 jest --collect-coverage\n\n-----------------|----------|----------|----------|----------|-------------------|\nFile             |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |\n-----------------|----------|----------|----------|----------|-------------------|\nAll files        |    94.94 |    86.36 |    90.91 |    94.94 |                   |\n pull_request.js |    96.36 |       85 |      100 |    96.36 |             21,40 |\n utils.js        |    91.67 |      100 |    83.33 |    91.67 |             42,44 |\n-----------------|----------|----------|----------|----------|-------------------|\n\n```\n\n# Contributing\n\nPull requests \u0026 issues welcome!\n\n## Dev Setup\n\n## Setup Dependencies\n```\nnpm install\n```\n\n## Running tests\n```\nnpm test\n```\n\n## Packaging (required before creating PR)\n\n```\nnpm run package\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felilillyco%2Fgithub-actions-post-to-pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felilillyco%2Fgithub-actions-post-to-pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felilillyco%2Fgithub-actions-post-to-pr/lists"}