Hey, the code fails on this step, because it does not see mrIid in context. This is due to pipeline being run manually by webhook service.
|
if (this.context.mrIid) { |
The proper MR id and resource type is detected:
Processing GitLab webhook event...
Event type:
Processing Claude webhook trigger...
Project: **
Resource Type: merge_request
Resource ID: 2026
Branch: mh/spotify-fetch-items
Author: bimusiek
Note: @Claude Can you make a review of this PR? Pay attention to refactored code, so it stays the same.
But later it is not taken into consideration.
Workaround that helped is:
export CI_MERGE_REQUEST_IID=$CLAUDE_RESOURCE_ID
export CLAUDE_RESOURCE_ID=
Hey, the code fails on this step, because it does not see mrIid in context. This is due to pipeline being run manually by webhook service.
claude-code-for-gitlab/src/providers/gitlab-provider.ts
Line 327 in 788aecb
The proper MR id and resource type is detected:
But later it is not taken into consideration.
Workaround that helped is: