Skip to content

Commit d003852

Browse files
committed
Pass head mr timestamp on mr webhooks when triggering gitlab import
1 parent 9f79f04 commit d003852

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integrations/gitlab/src/webhooks.ts

+4
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ export async function handleMergeRequestEvent(
171171
standalone: {
172172
ref: sourceRef,
173173
},
174+
eventCreatedAt:
175+
payload.object_attributes.action === 'open'
176+
? new Date(payload.object_attributes.created_at)
177+
: new Date(payload.object_attributes.updated_at),
174178
});
175179
} catch (error) {
176180
logger.error(

0 commit comments

Comments
 (0)