{"id":29427514,"url":"https://github.com/christianncode/pr-total-changes","last_synced_at":"2025-07-12T13:09:05.777Z","repository":{"id":299698984,"uuid":"1003807413","full_name":"christianncode/pr-total-changes","owner":"christianncode","description":"Get a summary of the total number of changes in a pull request","archived":false,"fork":false,"pushed_at":"2025-06-30T17:33:27.000Z","size":1312,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-30T18:32:06.635Z","etag":null,"topics":["actions","pr","utilities","workflow"],"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/christianncode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-06-17T17:40:23.000Z","updated_at":"2025-06-30T17:33:30.000Z","dependencies_parsed_at":"2025-06-17T21:41:40.433Z","dependency_job_id":"f434e5e1-2ce8-45e9-9e06-7b1f939b5014","html_url":"https://github.com/christianncode/pr-total-changes","commit_stats":null,"previous_names":["christianncode/pr-total-changes"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/christianncode/pr-total-changes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianncode%2Fpr-total-changes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianncode%2Fpr-total-changes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianncode%2Fpr-total-changes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianncode%2Fpr-total-changes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/christianncode","download_url":"https://codeload.github.com/christianncode/pr-total-changes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/christianncode%2Fpr-total-changes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264995725,"owners_count":23695024,"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","pr","utilities","workflow"],"created_at":"2025-07-12T13:09:03.372Z","updated_at":"2025-07-12T13:09:05.753Z","avatar_url":"https://github.com/christianncode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PR Total Changes\n\nGet a summary of the total number of changes (additions and deletions) in a pull request, and automatically comment on the PR with the results.\n\n## Features\n\n- Calculates lines added, removed, and total changes in a PR.\n- Comments a summary table on the pull request.\n- Warns if the PR exceeds configurable limits for additions, deletions, or total changes.\n\n## Usage\n\nAdd the following step to your workflow:\n\n```yaml\n- name: PR Total Changes\n  uses: christianncode/pr-total-changes@v1\n  with:\n    github_token: ${{ secrets.GITHUB_TOKEN }}\n    # additions_limit: 1000\n    # deletions_limit: 1000\n    # total_limit: 500\n```\n\n## Inputs\n\n| Name            | Description                                     | Required | Default |\n| --------------- | ----------------------------------------------- | -------- | ------- |\n| github_token    | GitHub token with read access to the repository | true     |         |\n| additions_limit | Maximum number of additions allowed in the PR   | false    |         |\n| deletions_limit | Maximum number of deletions allowed in the PR   | false    |         |\n| total_limit     | Total number of changes to consider for the PR  | false    | 500     |\n\n## Example Output\n\nThe action will comment something like:\n\n```\n### 📊 Code Changes Summary\n| Lines Added | Lines Removed | Total Changes |\n|-------------|---------------|---------------|\n| 123         | 45            | 168           |\n\n### ➡️ Configurations (Inputs)\n| Additions Limit | Deletions Limit | Total Limit |\n|-----------------|-----------------|-------------|\n| 1000            | 1000            | 500         |\n\n✅ **The PR is within the acceptable limit.**\n```\n\nIf any limit is exceeded:\n\n```\n❌ **Too many additions! The PR exceeds the limit of 1000 lines added.**\n❌ **Too many deletions! The PR exceeds the limit of 1000 lines removed.**\n❌ **Too many changes! The PR exceeds the limit of 500 lines.**\n```\n\n## License\n\n[MIT](LICENSE)\n\n---\n\nMade with ❤️ by [Christian Díaz](https://github.com/christianncode)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianncode%2Fpr-total-changes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchristianncode%2Fpr-total-changes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchristianncode%2Fpr-total-changes/lists"}