Skip to content

Commit 386691f

Browse files
committed
Fix formatting inconsistencies in create-pr workflow and script by removing unnecessary blank lines. This improves readability and maintains a cleaner code structure.
1 parent bac8cd9 commit 386691f

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎.github/workflows/create-pr.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
**Context:**
119119
- Repository: Application codebase
120120
- Source Branch: $SOURCE_BRANCH
121-
- Target Branch: $TARGET_BRANCH
121+
- Target Branch: $TARGET_BRANCH
122122
- PR Type: $PR_TYPE
123123
- Files Changed: $FILES_CHANGED
124124
- Commits: $COMMITS_COUNT
@@ -154,7 +154,7 @@ jobs:
154154
155155
**Context:**
156156
- Source Branch: $SOURCE_BRANCH
157-
- Target Branch: $TARGET_BRANCH
157+
- Target Branch: $TARGET_BRANCH
158158
- PR Type: $PR_TYPE
159159
- Files Changed: $FILES_CHANGED
160160
- Commits: $COMMITS_COUNT

‎bin/create-pr‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,25 +83,25 @@ ATTEMPT=1
8383

8484
while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
8585
echo "Attempt $ATTEMPT/$MAX_ATTEMPTS: Checking for created PR..."
86-
86+
8787
# Check if workflow failed
8888
WORKFLOW_STATUS=$(gh run list --workflow=create-pr.yml --limit=1 --json status --jq '.[0].status' 2>/dev/null || echo "")
8989
if [ "$WORKFLOW_STATUS" = "failure" ]; then
9090
echo "❌ Workflow failed. Check the GitHub Actions logs:"
9191
echo " gh run list --workflow=create-pr.yml"
9292
exit 1
9393
fi
94-
94+
9595
# Check if PR exists from current branch to target
9696
PR_URL=$(gh pr list --head "$CURRENT_BRANCH" --base "$TARGET_BRANCH" --json url --jq '.[0].url' 2>/dev/null || echo "")
97-
97+
9898
if [ -n "$PR_URL" ] && [ "$PR_URL" != "null" ]; then
9999
echo "✅ PR created successfully!"
100100
echo "🔗 PR URL: $PR_URL"
101101
echo ""
102102
echo "🎉 Claude has analyzed your changes and created a comprehensive PR"
103103
echo "📝 Review the PR description and make any necessary adjustments"
104-
104+
105105
# Try to open PR in browser
106106
if command -v open >/dev/null 2>&1; then
107107
echo "🌐 Opening PR in browser..."
@@ -112,10 +112,10 @@ while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
112112
else
113113
echo "💡 Open the PR manually: $PR_URL"
114114
fi
115-
115+
116116
exit 0
117117
fi
118-
118+
119119
if [ $ATTEMPT -eq $MAX_ATTEMPTS ]; then
120120
echo "❌ Timeout: PR was not created after 5 minutes"
121121
echo "Check the GitHub Actions workflow status:"
@@ -125,8 +125,8 @@ while [ $ATTEMPT -le $MAX_ATTEMPTS ]; do
125125
echo " gh pr create --base $TARGET_BRANCH --head $CURRENT_BRANCH"
126126
exit 1
127127
fi
128-
128+
129129
echo "PR not yet created, waiting 10 seconds..."
130130
sleep 10
131131
ATTEMPT=$((ATTEMPT + 1))
132-
done
132+
done

0 commit comments

Comments
 (0)