{"id":15888279,"url":"https://github.com/antoncoding/gas-diff-action","last_synced_at":"2025-03-20T10:30:40.480Z","repository":{"id":159139328,"uuid":"634448902","full_name":"antoncoding/gas-diff-action","owner":"antoncoding","description":"Compares gas usage in Solidity projects using Foundry and comments the changes on the PR","archived":false,"fork":false,"pushed_at":"2024-10-07T05:18:00.000Z","size":435,"stargazers_count":23,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T00:48:09.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/antoncoding.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}},"created_at":"2023-04-30T06:38:06.000Z","updated_at":"2024-10-07T05:18:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"6d9c0771-8cf7-445a-9394-7dbc0d68ae44","html_url":"https://github.com/antoncoding/gas-diff-action","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Fgas-diff-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Fgas-diff-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Fgas-diff-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antoncoding%2Fgas-diff-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antoncoding","download_url":"https://codeload.github.com/antoncoding/gas-diff-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244594798,"owners_count":20478341,"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":[],"created_at":"2024-10-06T06:06:56.372Z","updated_at":"2025-03-20T10:30:40.474Z","avatar_url":"https://github.com/antoncoding.png","language":"Rust","readme":"# Gas Diff Action\n\nGas Diff Action is a GitHub Action that compares gas usage in Solidity projects using Foundry and comments the changes on the PR.\n\n## Preview\n\n![](./docs/imgs/screenshot.png)\n\n## Usage\n\nTo integrate Gas Diff Action into your project, follow these steps:\n\n1. Create a `.github/workflows` directory in your repository if it doesn't already exist.\n2. Inside the `workflows` directory, create a new file called `gas_comparison.yml`.\n3. Add the following content to the `gas_comparison.yml` file:\n\n```yaml\nname: Gas Comparison\n\non:\n  pull_request:\n    types:\n      - opened\n      - synchronize\n\n# Set the job-level permissions\npermissions:\n  pull-requests: write\n  contents: read\n\njobs:\n  gas_comparison:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Run Gas Comparison\n        uses: antoncoding/gas-diff-action@v2.0.1\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          base_ref: ${{ github.base_ref }}\n          head_ref: ${{ github.head_ref }}\n```\n\n## Debugging\n\nIf you encounter issues with the action, particularly related to permissions, follow these steps:\n\n1. Ensure that the `permissions` key is correctly set in your workflow file as shown in the example above.\n\n2. If you're still having issues, check the permissions of the GitHub token:\n   - Go to your repository's Settings\n   - Navigate to Actions \u003e General\n   - Scroll down to \"Workflow permissions\"\n   - Ensure that \"Read and write permissions\" is selected for the GITHUB_TOKEN\n\n3. Make sure your workflow file is correctly configured and the `token` input is properly set to `${{ secrets.GITHUB_TOKEN }}`.\n\nIf problems persist, please open an issue in the Gas Diff Action repository with details about the error and your configuration.\n\n## Contributing\n\nContributions to Gas Diff Action are welcome! Please submit issues for bug reports or feature requests and create pull requests for any improvements or bug fixes.\n\n## License\n\nGas Diff Action is released under the MIT License.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoncoding%2Fgas-diff-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantoncoding%2Fgas-diff-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantoncoding%2Fgas-diff-action/lists"}