Skip to content

Commit 1aa78b5

Browse files
committed
change pr targeting
1 parent 876cdc9 commit 1aa78b5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/close_ruff_autofix_pr.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
repo,
2626
state: "open",
2727
head,
28-
base: "main",
2928
per_page: 100,
3029
});
3130

‎.github/workflows/run_tests.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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'
@@ -60,7 +61,7 @@ jobs:
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

0 commit comments

Comments
 (0)