{"id":28487351,"url":"https://github.com/live-codes/pr-comment-from-artifact","last_synced_at":"2026-01-30T11:24:28.169Z","repository":{"id":220594143,"uuid":"751574090","full_name":"live-codes/pr-comment-from-artifact","owner":"live-codes","description":"Post PR Comment from Artifact","archived":false,"fork":false,"pushed_at":"2024-04-18T13:56:52.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T21:37:15.450Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/live-codes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":"FUNDING.yml","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,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["live-codes","hatemhosny"],"ko_fi":"hatemhosny","custom":["https://paypal.me/hatemhosni"]}},"created_at":"2024-02-01T21:52:28.000Z","updated_at":"2024-02-01T21:52:29.000Z","dependencies_parsed_at":"2024-02-03T00:24:41.342Z","dependency_job_id":"18006668-8e8a-45ff-9932-5cc067b494ec","html_url":"https://github.com/live-codes/pr-comment-from-artifact","commit_stats":null,"previous_names":["live-codes/pr-comment-from-artifact"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/live-codes/pr-comment-from-artifact","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fpr-comment-from-artifact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fpr-comment-from-artifact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fpr-comment-from-artifact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fpr-comment-from-artifact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/live-codes","download_url":"https://codeload.github.com/live-codes/pr-comment-from-artifact/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/live-codes%2Fpr-comment-from-artifact/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28911821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T08:15:08.179Z","status":"ssl_error","status_checked_at":"2026-01-30T08:14:31.507Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2025-06-08T04:30:49.738Z","updated_at":"2026-01-30T11:24:28.150Z","avatar_url":"https://github.com/live-codes.png","language":null,"funding_links":["https://github.com/sponsors/live-codes","https://github.com/sponsors/hatemhosny","https://ko-fi.com/hatemhosny","https://paypal.me/hatemhosni"],"categories":[],"sub_categories":[],"readme":"# Post PR Comment from Artifact\n\nThis GitHub Action allows you to post a pull request comment from an artifact.\n\nThe artifact is downloaded, extracted and the first file in it is used for the comment. The file name is used as the pull request number (excluding the file extension), while the content of the file is used as the comment body.\n\n\"Upsert\" mode is used for multiple comments to the same pull request (the comment is updated if it already exists).\n\nTypically, this action is used in conjunction with a workflow that creates an artifact (like [live-codes/preview-in-livecodes](https://github.com/live-codes/preview-in-livecodes)), and is triggered by a successful workflow run (see usage below).\n\n## Inputs\n\n- `GITHUB_TOKEN`: Github token of the repository - (default: `${{ github.token }}` [automatically created by Github])\n- `artifact`: Name of the artifact - (default: \"pr\")\n\n## Outputs\n\n- `id`: ID of the comment\n- `body`: Body of the comment\n- `html_url`: HTML URL of the comment\n\n## Usage\n\n```yaml\nname: Comment on pull request\n\non:\n  workflow_run:\n    workflows: [\"create-artifact\"] # the workflow that created the artifact\n    types:\n      - completed\n\njobs:\n  upload:\n    runs-on: ubuntu-latest\n    permissions:\n      pull-requests: write\n    if: \u003e\n      github.event.workflow_run.event == 'pull_request' \u0026\u0026\n      github.event.workflow_run.conclusion == 'success'\n\n    steps:\n      - name: Post comment\n        uses: live-codes/pr-comment-from-artifact@v1\n        with:\n          GITHUB_TOKEN: ${{ github.token }}\n```\n\n## Credits\n\nBased on:\n\n- https://securitylab.github.com/research/github-actions-preventing-pwn-requests/\n- https://github.com/thollander/actions-comment-pull-request\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flive-codes%2Fpr-comment-from-artifact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flive-codes%2Fpr-comment-from-artifact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flive-codes%2Fpr-comment-from-artifact/lists"}