diff --git a/.github/workflows/RuboCop-Auto-correct.yml b/.github/workflows/RuboCop-Auto-correct.yml index dd10ca1..84c3aa3 100644 --- a/.github/workflows/RuboCop-Auto-correct.yml +++ b/.github/workflows/RuboCop-Auto-correct.yml @@ -2,7 +2,7 @@ name: RuboCop Auto-correct on: push: - branches: [ "main" ] + branches: [ "development" ] jobs: autocorrect: @@ -34,8 +34,9 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.RUBOCOP_CHECKS }} title: "Apply RuboCop auto-correct" branch: "rubocop-autocorrect-${{ github.run_number }}" + base: "development" delete-branch: true body: "This PR applies RuboCop auto-corrections to the codebase."