Custom action to auto-correct RuboCop ToDo offenses and create pull request.
An example workflow to run rubocop-todo-corrector via manual running.
# .github/workflows/rubocop-todo-corrector.yml
name: rubocop-todo-corrector
on:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: r7kamura/rubocop-todo-corrector@v0Now you can run rubocop-todo-corrector via GitHub Actions page, or GitHub CLI like this:
gh workflow run rubocop-todo-corrector
- GitHub access token to run another workflows from new pull request.
- Don't forget to add
workflowscope to this token
- Don't forget to add
- optional
- Pull request label name.
- default:
""(empty string means no-label)
- Mode to select deletion target.
- default:
"random" - Choose from the following options:
"first""last""least_occurred""most_occurred""random"
- Exclude unsafe cops.
- default:
true

