{"id":19038787,"url":"https://github.com/rustycl0ck/drone-pr-comment","last_synced_at":"2025-09-07T01:30:42.536Z","repository":{"id":56565492,"uuid":"308630121","full_name":"rustycl0ck/drone-pr-comment","owner":"rustycl0ck","description":"A Drone.io plugin for commenting on Pull Requests in enterprise or public github","archived":false,"fork":false,"pushed_at":"2021-02-26T01:28:21.000Z","size":171,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-07T15:12:09.034Z","etag":null,"topics":["drone-plugin"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rustycl0ck.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-10-30T12:53:53.000Z","updated_at":"2024-04-20T01:24:06.000Z","dependencies_parsed_at":"2022-08-15T21:00:55.991Z","dependency_job_id":null,"html_url":"https://github.com/rustycl0ck/drone-pr-comment","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rustycl0ck/drone-pr-comment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustycl0ck%2Fdrone-pr-comment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustycl0ck%2Fdrone-pr-comment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustycl0ck%2Fdrone-pr-comment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustycl0ck%2Fdrone-pr-comment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rustycl0ck","download_url":"https://codeload.github.com/rustycl0ck/drone-pr-comment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustycl0ck%2Fdrone-pr-comment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273986610,"owners_count":25202704,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["drone-plugin"],"created_at":"2024-11-08T22:09:18.762Z","updated_at":"2025-09-07T01:30:42.251Z","avatar_url":"https://github.com/rustycl0ck.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://cloud.drone.io/api/badges/rustycl0ck/drone-pr-comment/status.svg)](https://cloud.drone.io/rustycl0ck/drone-pr-comment)\n\n# GitHub Pull-Request Comment [Drone Plugin]\n\nThis plugin can be used for posting customized messages on GitHub pull requests (like sending back test results). You will have to create a [GitHub App](https://docs.github.com/en/free-pro-team@latest/developers/apps/creating-a-github-app) and install it in your repository.\nProvide `Read \u0026 Write` access on `Issues` and `Pull Requests` to the app. For authentication and authorizations, this plugin will use private key from the created GitHub App.\n\nBelow configuration demonstrates simple usage:\n\n```yaml\nsteps:\n- name: pr_comment\n  image: rustycl0ck/drone-pr-comment\n  settings:\n    rsa_key:\n      from_secret: pr_rsa_key\n    app_id:\n      from_secret: pr_app_id\n    comment_file: test-results.txt\n  when:\n    event:\n    - pull_request\n```\n\nComments can be read as inline text as well:\n\n```diff\n  steps:\n  - name: pr_comment\n    image: rustycl0ck/drone-pr-comment\n    settings:\n      rsa_key:\n        from_secret: pr_rsa_key\n      app_id:\n        from_secret: pr_app_id\n-     comment_file: test-results.txt\n+     comment_text: Some checks failed to pass. Please fix them and update the PR.\n    when:\n      event:\n      - pull_request\n+     status:\n+     - failure\n```\n\nIf you are using Enterprise GitHub:\n\n```diff\n  steps:\n  - name: pr_comment\n    image: rustycl0ck/drone-pr-comment\n    settings:\n      rsa_key:\n        from_secret: pr_rsa_key\n      app_id:\n        from_secret: pr_app_id\n      comment_file: test-results.txt\n+     enterprise_gh_host: https://github.organization.com\n    when:\n      event:\n      - pull_request\n```\n\n# Parameter Reference\n\nVariable | Description\n--- | ---\n`rsa_key` | GitHub App private key contents. (Ref: [Create GitHub App](https://docs.github.com/en/free-pro-team@latest/developers/apps/creating-a-github-app), [Generate App Keys](https://docs.github.com/en/free-pro-team@latest/developers/apps/authenticating-with-github-apps#generating-a-private-key))\n`rsa_key_file` | Path to GitHub App private key file (if `rsa_key` parameter is not provided)\n`app_id` | GitHub App ID (Ref: [Save Your Private Key and App ID](https://docs.github.com/en/free-pro-team@latest/developers/apps/setting-up-your-development-environment-to-create-a-github-app#step-3-save-your-private-key-and-app-id))\n`comment_text` | The text which will be posted as a comment on the Pull Request\n`comment_file` | Path to a file whose contents will be posted as a comment on the Pull Request\n`comment_wrap_as_code` | If `true`, the whole comment will be quoted within ` ``` ` and ` ``` `\n`enterprise_gh_host` | URL of the Enterprise GitHub. If omitted, public github is used.\n`skip_tls_verify` | Skip TLS certificate verification check on hosted GitHub instances\n`debug` | Verbose logging [WARNING: This will expose the `Installation ID` of the github app in logs]\n`log_format` | Either `json` or `logfmt` (default) log format\n\n\n# Sample\n\nA sample where the bot posts back the result of `terraform plan` on the PR:\n\n![PR bot comment](img/ci-bot-example-git-comment.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustycl0ck%2Fdrone-pr-comment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustycl0ck%2Fdrone-pr-comment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustycl0ck%2Fdrone-pr-comment/lists"}