@@ -9229,20 +9229,22 @@ func (h *Handlers) PostIndividualSignedV2(w http.ResponseWriter, r *http.Request
92299229 if status >= 400 {
92309230 logging .Warnf ("v4 signed/individual returned %d: %s" , status , string (respBody ))
92319231 }
9232- if signatureID , completed := extractDocuSignSignatureCompletion (body ); completed && signatureID != "" {
9233- if h .waitForSignedSignature (r .Context (), signatureID , 10 , 500 * time .Millisecond ) {
9234- if err := h .triggerGitHubChangeRequestUpdateV4 (
9235- r .Context (),
9236- strings .TrimSpace (chi .URLParam (r , "installation_id" )),
9237- strings .TrimSpace (chi .URLParam (r , "github_repository_id" )),
9238- strings .TrimSpace (chi .URLParam (r , "change_request_id" )),
9239- ); err != nil {
9240- logging .Warnf ("post_individual_signed - best-effort GitHub change request refresh failed: %v" , err )
9241- }
9242- } else {
9243- logging .Warnf ("post_individual_signed - signed signature did not become visible in time: %s" , signatureID )
9232+ signatureID , completed := extractDocuSignSignatureCompletion (body )
9233+ logging .Debugf ("post_individual_signed - extracted signature completion from DocuSign callback: signatureID=%s completed=%t" , signatureID , completed )
9234+ //if signatureID, completed := extractDocuSignSignatureCompletion(body); completed && signatureID != "" {
9235+ if h .waitForSignedSignature (r .Context (), signatureID , 10 , 500 * time .Millisecond ) {
9236+ if err := h .triggerGitHubChangeRequestUpdateV4 (
9237+ r .Context (),
9238+ strings .TrimSpace (chi .URLParam (r , "installation_id" )),
9239+ strings .TrimSpace (chi .URLParam (r , "github_repository_id" )),
9240+ strings .TrimSpace (chi .URLParam (r , "change_request_id" )),
9241+ ); err != nil {
9242+ logging .Warnf ("post_individual_signed - best-effort GitHub change request refresh failed: %v" , err )
92449243 }
9244+ } else {
9245+ logging .Warnf ("post_individual_signed - signed signature did not become visible in time: %s" , signatureID )
92459246 }
9247+ //}
92469248
92479249 copyV4ResponseHeaders (w , hdr )
92489250 w .WriteHeader (http .StatusOK )
0 commit comments