{"id":18527212,"url":"https://github.com/picocentauri/comment-artifact","last_synced_at":"2026-04-25T12:34:57.695Z","repository":{"id":240359857,"uuid":"802421017","full_name":"PicoCentauri/comment-artifact","owner":"PicoCentauri","description":"GitHub Actions for updating PR description with a link to download an artifact","archived":false,"fork":false,"pushed_at":"2025-03-07T07:51:38.000Z","size":5491,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T08:30:57.622Z","etag":null,"topics":["artifacts","comments-widget","download","github-actions"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/PicoCentauri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-18T08:43:59.000Z","updated_at":"2025-03-07T07:50:27.000Z","dependencies_parsed_at":"2024-06-22T09:49:45.739Z","dependency_job_id":"b766aca0-b85f-4e67-8fd1-95f315d3965b","html_url":"https://github.com/PicoCentauri/comment-artifact","commit_stats":null,"previous_names":["picocentauri/artifact-comment"],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PicoCentauri%2Fcomment-artifact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PicoCentauri%2Fcomment-artifact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PicoCentauri%2Fcomment-artifact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PicoCentauri%2Fcomment-artifact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PicoCentauri","download_url":"https://codeload.github.com/PicoCentauri/comment-artifact/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254230746,"owners_count":22036230,"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":["artifacts","comments-widget","download","github-actions"],"created_at":"2024-11-06T17:54:32.484Z","updated_at":"2026-04-25T12:34:52.659Z","avatar_url":"https://github.com/PicoCentauri.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Add artifact link to Pull Requests\n\nComment Actions Artifacts from your Workflow Runs.\n\nThe action automatically edits Pull Requests' descriptions with link to download\none or more artifacts. This action is heavily inspired by the\n[ReadTheDocs action](https://github.com/readthedocs/actions/tree/main/preview)\nand [download-artifact action](https://github.com/actions/download-artifact)\n\n## Usage\n\n```yaml\n- uses: PicoCentauri/comment-artifact@v1\n  with:\n    # Name of the artifact to link.\n    name:\n\n    # Description of the artifact download link.\n    # Default is 'Download artifact for this pull request'\n    description:\n\n    # Destination path. Supports basic tilde expansion.\n    # Optional. Default is $GITHUB_WORKSPACE\n    path:\n\n    # The GitHub token used to authenticate with the GitHub API.\n    # This is required when downloading artifacts from a different repository\n    # or from a different workflow run.\n    # Optional. If unspecified, the action will download artifacts from the\n    # current repo and the current workflow run.\n    github-token:\n\n    # The repository owner and the repository name joined together by \"/\".\n    # If github-token is specified, this is the repository that artifacts will\n    #be downloaded from.\n    # Optional. Default is ${{ github.repository }}\n    repository:\n\n    # The id of the workflow run where the desired download artifact was\n    # uploaded from. If github-token is specified, this is the run that\n    # artifacts will be downloaded from.\n    # Optional. Default is ${{ github.run_id }}\n    run-id:\n```\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e Ensure that your action has the correct _write_ \u003e\n\u003e [permissions](https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs).\n\u003e You can set these permissions either at the root level of a workflow:\n\u003e\n\u003e ```yaml\n\u003e name: 'My workflow'\n\u003e\n\u003e on: [push]\n\u003e permissions:\n\u003e   pull-requests: write\n\u003e\n\u003e jobs: ...\n\u003e ```\n\u003e\n\u003e or within the specific job where you want to use the `comment-artifact`\n\u003e action:\n\u003e\n\u003e ```yaml\n\u003e jobs:\n\u003e   stale:\n\u003e     runs-on: ubuntu-latest\n\u003e\n\u003e     permissions:\n\u003e       pull-requests: write\n\u003e ```\n\u003e\n\u003e Note that job-level permissions override root-level permissions. If you set\n\u003e `pull-requests: write` at the root level and have non-empty permissions at the\n\u003e job level without specifying them there, the action will fail.\n\n## Example\n\n![Example of a description edited with link to download\nartifacts](pull-request-example.png)\n\n## Contributing\n\nIf you want to help improving this action take a look the\n[contributing instructions](./CONTRIBUTING.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicocentauri%2Fcomment-artifact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpicocentauri%2Fcomment-artifact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpicocentauri%2Fcomment-artifact/lists"}