mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Add comprehensive debugging and multiple fallback strategies for repository owner detection
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
82d958747a
commit
a8a1f362cb
1 changed files with 19 additions and 2 deletions
21
.github/workflows/changelog-v3.yml
vendored
21
.github/workflows/changelog-v3.yml
vendored
|
|
@ -110,12 +110,29 @@ jobs:
|
|||
REPO_OWNER="${{ github.event.pull_request.head.repo.owner.login }}"
|
||||
else
|
||||
# For manual workflow dispatch, get PR info
|
||||
echo "🔍 Fetching PR info for #${{ steps.pr_info.outputs.pr_number }}..."
|
||||
PR_INFO=$(gh pr view ${{ steps.pr_info.outputs.pr_number }} --json headRefName,headRepository)
|
||||
echo "📋 Raw PR info: $PR_INFO"
|
||||
|
||||
BRANCH_NAME=$(echo "$PR_INFO" | jq -r '.headRefName')
|
||||
REPO_OWNER=$(echo "$PR_INFO" | jq -r '.headRepository.owner.login')
|
||||
# Fallback if owner is null/empty
|
||||
|
||||
echo "🌿 Branch: $BRANCH_NAME"
|
||||
echo "👤 Owner: $REPO_OWNER"
|
||||
|
||||
# Multiple fallback strategies for owner detection
|
||||
if [ "$REPO_OWNER" = "null" ] || [ -z "$REPO_OWNER" ]; then
|
||||
REPO_OWNER="wailsapp"
|
||||
echo "⚠️ Repository owner is null/empty, trying alternative methods..."
|
||||
|
||||
# Try getting owner from GitHub context
|
||||
REPO_OWNER="${{ github.repository_owner }}"
|
||||
echo "🏢 Context owner: $REPO_OWNER"
|
||||
|
||||
# Final fallback to hardcoded value
|
||||
if [ "$REPO_OWNER" = "null" ] || [ -z "$REPO_OWNER" ]; then
|
||||
REPO_OWNER="wailsapp"
|
||||
echo "🔧 Using fallback: $REPO_OWNER"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue