File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -79,17 +79,19 @@ runs:
79
79
80
80
# Try to create PR if requested
81
81
if [[ "${{ inputs.create_pr }}" == "true" ]]; then
82
- if gh pr create \
82
+ PR_URL=$( gh pr create \
83
83
--base "${{ github.ref_name }}" \
84
84
--head "$BRANCH_NAME" \
85
85
--title "feat: Update MCP server with latest generated code" \
86
86
--body "Auto generated PR with MCP server code by CodeGlide.
87
87
88
88
**Generated from:** \`${{ inputs.input_directory }}\`
89
89
**Generated by:** CodeGlide MCP Generator
90
- **Triggered by:** @${{ github.actor }}" > /dev/null 2>&1; then
90
+ **Triggered by:** @${{ github.actor }}")
91
+
92
+ if [ $? -eq 0 ]; then
91
93
echo "Pull request created successfully!"
92
- echo "View PR at: https://github.com/${{ github.repository }}/pull/... "
94
+ echo "View PR at: $PR_URL "
93
95
else
94
96
echo "Could not create PR (insufficient permissions)"
95
97
echo "To create a PR manually, visit:"
@@ -114,4 +116,3 @@ runs:
114
116
path : generated-mcp/
115
117
116
118
117
-
You can’t perform that action at this time.
0 commit comments