Skip to content

Commit

Permalink
fix: try to read config from the commit sha from MR instead of HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
jippi committed Aug 30, 2024
1 parent fee1b08 commit c988288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gitlab_server_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func GitLabWebhookHandler(ctx context.Context, webhookSecret string) http.Handle
}

// Check if there exists scm-config file in the repo before moving forward
file, err := client.MergeRequests().GetRemoteConfig(ctx, state.ConfigFilePath(ctx), "")
file, err := client.MergeRequests().GetRemoteConfig(ctx, state.ConfigFilePath(ctx), state.CommitSHA(ctx))
if err != nil {
errHandler(ctx, w, http.StatusOK, err)

Expand Down

0 comments on commit c988288

Please sign in to comment.