File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 repo,
2626 state: "open",
2727 head,
28- base: "main",
2928 per_page: 100,
3029 });
3130
Original file line number Diff line number Diff line change @@ -43,15 +43,16 @@ jobs:
4343 token : ${{ secrets.GITHUB_TOKEN }}
4444 commit-message : " fix: ruff auto-fix for #${{ github.event.pull_request.number }}"
4545 branch : ci/ruff-autofix/pr-${{ github.event.pull_request.number }}
46- base : main
46+ base : ${{ github.event.pull_request.head.ref }}
4747 title : " fix: ruff auto-fix for #${{ github.event.pull_request.number }}"
4848 body : |
4949 Auto-generated Ruff fixes for #${{ github.event.pull_request.number }}.
5050
5151 Source PR: #${{ github.event.pull_request.number }}
5252 Source SHA: `${{ github.event.pull_request.head.sha }}`
5353
54- This PR is kept as a rolling branch and will be auto-closed when the source PR is merged.
54+ This PR targets `${{ github.event.pull_request.head.ref }}` and is kept as a rolling branch.
55+ It will be auto-closed when the source PR is merged.
5556 delete-branch : true
5657 - name : Fail when Ruff fixes are needed
5758 if : steps.ruff_check.outcome == 'failure'
6061 echo "❌ Ruff found issues that can be fixed automatically."
6162 echo ""
6263 if [ "${{ github.event_name }}" = "pull_request" ] && [ "${{ github.event.pull_request.head.repo.full_name }}" = "${{ github.repository }}" ]; then
63- echo "💡 A rolling Ruff auto-fix PR to main has been created or updated."
64+ echo "💡 A rolling Ruff auto-fix PR to this PR branch has been created or updated."
6465 else
6566 echo "💡 Auto-fix PR creation was skipped (fork or non-PR event)."
6667 fi
You can’t perform that action at this time.
0 commit comments