sa1monICs/rubocop-todo-corrector

Custom action to auto-correct RuboCop ToDo offenses and create pull request.

★ 0Forks 0GitHub ↗Compare

README

rubocop-todo-corrector

Custom action to auto-correct RuboCop ToDo offenses and create pull request.

How it works?

Usage

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@v0

Now you can run rubocop-todo-corrector via GitHub Actions page, or GitHub CLI like this:

gh workflow run rubocop-todo-corrector

Inputs

github_token

  • GitHub access token to run another workflows from new pull request.
    • Don't forget to add workflow scope to this token
  • optional

label

  • Pull request label name.
  • default: "" (empty string means no-label)

mode

  • Mode to select deletion target.
  • default: "random"
  • Choose from the following options:
    • "first"
    • "last"
    • "least_occurred"
    • "most_occurred"
    • "random"

only_safe

  • Exclude unsafe cops.
  • default: true

Contributors

r7kamurasa1monICsydah

Issues