From 46531bb2c981721c983a14ea9c6046d4be1e0060 Mon Sep 17 00:00:00 2001 From: abgox Date: Sat, 6 Dec 2025 16:36:18 +0800 Subject: [PATCH] chore: add log message for protected default branch case --- src/Action/Issue.psm1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Action/Issue.psm1 b/src/Action/Issue.psm1 index 239b10c..68d6bf9 100644 --- a/src/Action/Issue.psm1 +++ b/src/Action/Issue.psm1 @@ -90,6 +90,7 @@ function Test-Hash { } else { # Check if default branch is protected if (((Invoke-GithubRequest "repos/$REPOSITORY/branches/$masterBranch").Content | ConvertFrom-Json).protected) { + Write-Log 'The default branch is protected. PR will be created.' Write-Log 'PR - Create new branch and post PR' $branch = "$manifestNameAsInBucket-hash-fix-$(Get-Random -Maximum 258258258)"