From 787468efce8700d2b3aa433af3e8e49d2f0de4c8 Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Thu, 17 Oct 2024 16:23:26 +0200 Subject: [PATCH] fix the fix --- .github/workflows/repo-pr-enforce-base-branch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/repo-pr-enforce-base-branch.yml b/.github/workflows/repo-pr-enforce-base-branch.yml index a8b486854315..6129958d4ab3 100644 --- a/.github/workflows/repo-pr-enforce-base-branch.yml +++ b/.github/workflows/repo-pr-enforce-base-branch.yml @@ -13,7 +13,7 @@ jobs: - name: Check if PR is from dev or hotfix if: ${{ !(startsWith(github.event.pull_request.head.ref, 'hotfix/') || github.event.pull_request.head.ref == 'dev') }} run: | - gh repo set-default ${{ github.repository.full_name }} + gh repo set-default ${{ github.repository }} gh pr comment ${{ github.event.number }} --body 'This PR targets the `master` branch but does not come from `dev` or a `hotfix/*` branch.\n\nAutomatically setting the base branch to `dev`.' gh pr edit ${{ github.event.number }} --base dev env: