We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83f7a3b commit 4265b79Copy full SHA for 4265b79
1 file changed
action.yml
@@ -57,6 +57,15 @@ runs:
57
if [ "${{ inputs.commit-directly }}" == "true" ]; then
58
echo "Commit Directly flag is set"
59
MobbExecString+=" --commit-directly"
60
+
61
+ # Check if the action is running in the context of a pull request
62
+ if [ -n "${{ github.event.pull_request.number }}" ]; then
63
+ PR_ID="${{ github.event.pull_request.number }}"
64
+ echo "Pull Request ID detected: $PR_ID"
65
+ MobbExecString+=" --pr-id $PR_ID"
66
+ else
67
+ echo "No Pull Request detected. Skipping --pr-id flag."
68
+ fi
69
fi
70
71
# Output the final command string for debugging and execute it
0 commit comments