{"id":18407609,"url":"https://github.com/libra-foundation/pull-request-comments","last_synced_at":"2025-07-03T03:04:44.079Z","repository":{"id":64521451,"uuid":"575298994","full_name":"Libra-foundation/Pull-Request-Comments","owner":"Libra-foundation","description":"Comment file or message on pull requests.","archived":false,"fork":false,"pushed_at":"2023-01-10T17:00:27.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-08T22:01:49.693Z","etag":null,"topics":["actions","pullrequest","python3"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/pull-request-comments","language":"Python","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/Libra-foundation.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":null,"security":null,"support":null}},"created_at":"2022-12-07T07:42:08.000Z","updated_at":"2023-01-10T15:59:38.000Z","dependencies_parsed_at":"2023-02-08T19:31:29.177Z","dependency_job_id":null,"html_url":"https://github.com/Libra-foundation/Pull-Request-Comments","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"ae6f4fccf7914d3d2a099def4a4b73aa1381fede"},"previous_names":["Correlatio-company/Pull-Request-Comments","correlatio-company/pull-request-comments"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Libra-foundation/Pull-Request-Comments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Libra-foundation%2FPull-Request-Comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Libra-foundation%2FPull-Request-Comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Libra-foundation%2FPull-Request-Comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Libra-foundation%2FPull-Request-Comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Libra-foundation","download_url":"https://codeload.github.com/Libra-foundation/Pull-Request-Comments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Libra-foundation%2FPull-Request-Comments/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263250595,"owners_count":23437288,"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","pullrequest","python3"],"created_at":"2024-11-06T03:14:38.288Z","updated_at":"2025-07-03T03:04:44.036Z","avatar_url":"https://github.com/Libra-foundation.png","language":"Python","readme":"# Pull Request Comment\r\n\r\nA GitHub action which adds comments on PRs based on templates.\r\n\r\n## Usage Example\r\n\r\n[`.github/workflows/example.yml`](.github/workflows/example.yml)\r\n\r\n```yml\r\nname: Example\r\non:\r\n  pull_request:\r\n    branches: [ \"main\" ]\r\n\r\njobs:\r\n  comment:\r\n    permissions:\r\n      pull-requests: write\r\n    runs-on: ubuntu-latest\r\n    steps:\r\n      - uses: actions/checkout@v3\r\n      - name: Add a comment to the PR\r\n        uses: Libra-foundation/Pull-Request-Comments@V1.0\r\n        env:\r\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\r\n        with:\r\n          filename: templates/template.md\r\n```\r\n\r\nThe workflow above will comment the content of the template. As of now the workflow does not format template. Depending\r\non the configuration of your repositories you might not need to explicitly set the permissions.\r\n\r\n```yml\r\nname: Example\r\non:\r\n  pull_request:\r\n    branches: [ \"main\" ]\r\n\r\njobs:\r\n  comment:\r\n    permissions:\r\n      pull-requests: write\r\n    runs-on: ubuntu-latest\r\n    steps:\r\n      - uses: actions/checkout@v3\r\n\r\n      - name: Add a comment to the PR\r\n        uses: Correlatio-company/Pull-Request-Comments@V1.1\r\n        env:\r\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\r\n        with:\r\n          filename: templates/template.md\r\n          tag: template\r\n\r\n      - name: create a new template\r\n        run: echo \"This is a generated text\" \u003e templates/temp.md\r\n\r\n      - name: Try to add another comment to the PR\r\n        uses: Libra-foundation/Pull-Request-Comments@V1.1.1\r\n        env:\r\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\r\n        with:\r\n          filename: templates/temp.md\r\n          tag: template\r\n```\r\n\r\nThe workflow above will comment the content of the template `template.md` then, create a new file and will try to\r\ncomment it. As we are using the same tag for both comment, the second won't be added unless we specify `override: true`\r\nas another parameter. If `override` is set top true, the action will edit the previous comment and change its content.\r\nThis is handy if you want to comment coverage on PR but do not want the PR to be spammed with comments or to have the\r\ncoverage not up to date. The `tag` and `override` arguments are both optional and if omitted the behavior of the action\r\nwill be the same as in the 1.0.\r\n\r\n## Contributing\r\n\r\nsee [CONTRIBUTING.md](CONTRIBUTING.md)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibra-foundation%2Fpull-request-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibra-foundation%2Fpull-request-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibra-foundation%2Fpull-request-comments/lists"}