{"id":7742734,"name":"maidsafe/pr_size_checker","ecosystem":"actions","description":"Check PR total lines changed","homepage":"https://safenetforum.org/","licenses":"bsd-3-clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://github.com/maidsafe/pr_size_checker","keywords_array":[],"namespace":"maidsafe","versions_count":4,"first_release_published_at":"2021-02-02T11:23:22.000Z","latest_release_published_at":"2021-06-15T17:40:45.000Z","latest_release_number":"v3","latest_published_release_number":null,"last_synced_at":"2026-06-19T04:48:13.072Z","created_at":"2023-05-17T08:42:52.001Z","updated_at":"2026-09-15T21:14:07.849Z","registry_url":"https://github.com/maidsafe/pr_size_checker","install_command":null,"documentation_url":null,"metadata":{"name":"PR Size Checker","description":"Check PR total lines changed","inputs":{"max_lines_changed":{"description":"Maximum number of lines changed allowed","required":true,"default":"200"},"target_branch":{"description":"The branch to compare against","required":true,"default":"main"}},"outputs":{"total_lines_changed":{"description":"Total lines changed in this PR","value":"${{ steps.get_total_lines_changed.outputs.random-id }}"}},"runs":{"using":"composite","steps":[{"id":"get_total_lines_changed","run":"size=$(git diff --stat origin/${{ inputs.target_branch }} \\\n| grep -v .lock \\\n| awk -F\"|\" '{ print $2 }' \\\n| awk '{ print $1 }' \\\n| sed '/^$/d' \\\n| paste -sd+ - \\\n| bc)\n\necho \"size=${size}\" \u003e\u003e $GITHUB_ENV\necho \"\"\necho \"Total lines changed (note: *.lock files are excluded from this count): \"\necho $size\n","shell":"bash"},{"run":"if [[ $size -gt ${{ inputs.max_lines_changed }} ]]\nthen\n  echo \"Warning - total lines changed is greater than\" ${{ inputs.max_lines_changed }}.\n  echo \"Please consider breaking this PR down.\"\n  exit 1\nfi\n","shell":"bash"}]},"default_branch":"main","path":null},"repo_metadata":{"uuid":"335256286","full_name":"maidsafe/pr_size_checker","owner":"maidsafe","description":"A GitHub Action which checks the number of additions and deletions made in each submitted PR, adding them together to come up with a total lines changed value, then checking whether this value exceeds the default or set max_lines_changed value. If it does exceed then the CI job will exit with code 1, i.e. fail.","archived":false,"fork":false,"pushed_at":"2022-01-14T07:07:12.000Z","size":7,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":12,"default_branch":"main","last_synced_at":"2023-07-27T06:18:27.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://safenetforum.org/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maidsafe.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-BSD","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"codeowners","security":null,"support":null}},"created_at":"2021-02-02T10:49:59.000Z","updated_at":"2022-01-21T07:37:17.000Z","dependencies_parsed_at":"2023-01-11T17:23:07.151Z","dependency_job_id":null,"html_url":"https://github.com/maidsafe/pr_size_checker","commit_stats":null,"previous_names":[],"tags_count":4,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maidsafe","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":152925240,"owners_count":7127199,"icon_url":"https://github.com/github.png","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"},"owner_record":{"login":"maidsafe","name":"MaidSafe","uuid":"536423","kind":"organization","description":"","email":null,"website":"https://maidsafe.net/","location":"Glasgow, Scotland","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/536423?v=4","repositories_count":49,"last_synced_at":"2023-02-24T00:50:16.229Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/maidsafe","created_at":"2022-11-07T17:39:57.736Z","updated_at":"2023-02-24T00:50:16.236Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maidsafe","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maidsafe/repositories"},"tags":[{"name":"v3","sha":"fa5820312a361f3f51aad2d3d9cb941d9e1d27db","kind":"commit","published_at":"2021-06-15T17:40:45.000Z","download_url":"https://codeload.github.com/maidsafe/pr_size_checker/tar.gz/v3","html_url":"https://github.com/maidsafe/pr_size_checker/releases/tag/v3","dependencies_parsed_at":"2023-05-31T14:44:16.533Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/tags/v3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/tags/v3/manifests"},{"name":"v2","sha":"a56ccb0795494c0b5727895171561d8c0d4beab8","kind":"commit","published_at":"2021-02-24T14:51:09.000Z","download_url":"https://codeload.github.com/maidsafe/pr_size_checker/tar.gz/v2","html_url":"https://github.com/maidsafe/pr_size_checker/releases/tag/v2","dependencies_parsed_at":"2023-05-31T14:44:16.616Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/tags/v2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/tags/v2/manifests"},{"name":"v1.1","sha":"c5d4ae20a0a5e9f54360f8e7762efb3a2939cf4e","kind":"commit","published_at":"2021-02-02T14:55:16.000Z","download_url":"https://codeload.github.com/maidsafe/pr_size_checker/tar.gz/v1.1","html_url":"https://github.com/maidsafe/pr_size_checker/releases/tag/v1.1","dependencies_parsed_at":"2023-05-31T14:44:16.786Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/tags/v1.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/tags/v1.1/manifests"},{"name":"v1","sha":"635faddfb5a36e4cbad29964f1937b7490b4f752","kind":"tag","published_at":"2021-02-02T11:23:22.000Z","download_url":"https://codeload.github.com/maidsafe/pr_size_checker/tar.gz/v1","html_url":"https://github.com/maidsafe/pr_size_checker/releases/tag/v1","dependencies_parsed_at":"2023-05-31T14:44:16.925Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maidsafe%2Fpr_size_checker/tags/v1/manifests"}]},"repo_metadata_updated_at":"2026-09-15T21:14:07.847Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":6,"rankings":{"downloads":null,"dependent_repos_count":14.431944224370147,"dependent_packages_count":0.0,"stargazers_count":19.857391855490413,"forks_count":16.162256377753128,"docker_downloads_count":1.5179844715575979,"average":10.393915385834257},"purl":"pkg:githubactions/maidsafe/pr_size_checker","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/maidsafe/pr_size_checker","docker_dependents_count":1,"docker_downloads_count":7248,"usage_url":"https://repos.ecosyste.ms/usage/actions/maidsafe/pr_size_checker","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/maidsafe/pr_size_checker/dependencies","status":"removed","funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/maidsafe%2Fpr_size_checker/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/maidsafe%2Fpr_size_checker/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/maidsafe%2Fpr_size_checker/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/maidsafe%2Fpr_size_checker/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/maidsafe%2Fpr_size_checker/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/maidsafe%2Fpr_size_checker/codemeta","maintainers":[]}