{"id":15405331,"url":"https://github.com/ydah/rubocop-updater","last_synced_at":"2025-03-28T01:52:38.550Z","repository":{"id":46379047,"uuid":"493893236","full_name":"ydah/rubocop-updater","owner":"ydah","description":"Custom action to update RuboCop and regenerate `.rubocop_todo.yml` to exclude all newly added offense cops and create Pull Request.","archived":false,"fork":false,"pushed_at":"2022-11-22T14:52:52.000Z","size":333,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-02T02:57:35.060Z","etag":null,"topics":["actions","automation","github-actions","rubocop","updater","workflows"],"latest_commit_sha":null,"homepage":"","language":null,"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/ydah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"ydah"}},"created_at":"2022-05-19T02:28:38.000Z","updated_at":"2022-11-22T14:59:15.000Z","dependencies_parsed_at":"2023-01-05T05:02:51.859Z","dependency_job_id":null,"html_url":"https://github.com/ydah/rubocop-updater","commit_stats":{"total_commits":50,"total_committers":1,"mean_commits":50.0,"dds":0.0,"last_synced_commit":"6b99eedb4f465953b411401a579c356f15947559"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Frubocop-updater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Frubocop-updater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Frubocop-updater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ydah%2Frubocop-updater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ydah","download_url":"https://codeload.github.com/ydah/rubocop-updater/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245955195,"owners_count":20699890,"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","automation","github-actions","rubocop","updater","workflows"],"created_at":"2024-10-01T16:16:05.158Z","updated_at":"2025-03-28T01:52:38.531Z","avatar_url":"https://github.com/ydah.png","language":null,"funding_links":["https://github.com/sponsors/ydah"],"categories":[],"sub_categories":[],"readme":"# rubocop-updater\n\n[Custom action](https://docs.github.com/en//actions/creating-actions/about-custom-actions)\nto update [RuboCop](https://github.com/rubocop/rubocop) and regenerate `.rubocop_todo.yml`\nto exclude all newly added offense cops and create Pull Request.\n\nIf you are developing a Rails project, such as those listed below, we may be able to help you.\n\n- [x] It's a reasonably large Rails project\n- [x] [Enabling pending Cops in bulk](https://docs.rubocop.org/rubocop/versioning.html#enablingdisabling-pending-cops-in-bulk)\n- [x] Many todo's remain in `.rubocop_todo.yml`.\n\nThis updater provides you with the automation of creating a PR for your upgrade that is secure and easy to see the differences.\n\nCreate a PR by creating a commit as follows:\n\n- bundle exec rubocop --auto-gen-config (for once you have `.rubocop_todo.yml` cleanup)\n- bundle update --conservative rubocop\n- bundle exec rubocop --auto-gen-config\n\n## How it works?\n\n![](img/actions.png)\n\n![](img/pr.png)\n\n## Usage\n\nAn example workflow to run rubocop-updater via\n[manual running](https://docs.github.com/en//actions/managing-workflow-runs/manually-running-a-workflow).\n\n```yaml\n# .github/workflows/rubocop-updater.yml\nname: rubocop-updater\non:\n  workflow_dispatch:\njobs:\n  run:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: ydah/rubocop-updater@v0\n```\n\nNow you can run rubocop-updater via GitHub Actions page,\nor [GitHub CLI](https://cli.github.com/) like this:\n\n```\ngh workflow run rubocop-updater\n```\n\n## Inputs\n\n### `github_token`\n\n- GitHub access token to run another workflows from new pull request.\n  - Don't forget to add `workflow` scope to this token\n- optional\n\n### `label`\n\n- Label to be given to the pull request.\n- default: `\"\"` (empty string means no-label)\n\n### `mode`\n\n- Switching modes of operation.\n  - normal\n  - quickly (Do not regenerate `.rubocop_todo.yml` to make it easier to see differences due to version changes)\n- default: `normal`\n\n### `update_target`\n\n- RuboCop (or extension) to be updated.\n- default: `rubocop`\n\n### `conservative_update`\n\n- If this option is `true`, then bundle update is performed as follows.\n  - `bundle update --conservative ${update_target}`\n- default: `true`\n\n### `preparation_command`\n\n- Specify the label to be triggered.\n- default: `\"\"` (empty string means no op)\n- optional\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydah%2Frubocop-updater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fydah%2Frubocop-updater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fydah%2Frubocop-updater/lists"}