From b1349e8a7f964535d5df9a4f8f1596198074623c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ku=C4=8Dera?= <26327373+vkucera@users.noreply.github.com> Date: Tue, 21 Jul 2026 12:05:12 +0200 Subject: [PATCH] Allow checking out PR head in code transformations --- .github/workflows/code-transformations.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code-transformations.yml b/.github/workflows/code-transformations.yml index 35493afda94f5..3173aae9ef3d4 100644 --- a/.github/workflows/code-transformations.yml +++ b/.github/workflows/code-transformations.yml @@ -19,8 +19,9 @@ jobs: # diverged. We're fetching everything here, as we don't know how many # commits back that point is. fetch-depth: 0 + allow-unsafe-pr-checkout: true # needed for pull_request_target - - name: Run refactoring + - name: Run refactoring id: run_refactoring env: ALIBUILD_GITHUB_TOKEN: ${{secrets.ALIBUILD_GITHUB_TOKEN}} @@ -68,7 +69,7 @@ jobs: destination_branch: '${{ github.event.pull_request.head.label }}' github_token: ${{ secrets.ALIBUILD_GITHUB_TOKEN }} pr_title: "Please consider the refactoring changes to AliceO2Group/AliceO2#${{ github.event.pull_request.number }}" - pr_body: | + pr_body: | AliceO2Group/AliceO2#${{ github.event.pull_request.number }}" cannot be merged as is. You should either modify your code according to what is done in this PR, or directly merge this PR in yours. The rationale for this change is: