Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit c239253

Browse files
author
ABaldwinHunter
committed
remove detail url from params if the status is error
1 parent 9ec9161 commit c239253

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/cc/services/github_pull_requests.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ def update_status(state, description)
107107
target_url: @payload["details_url"],
108108
context: "codeclimate"
109109
}
110+
if state == "error"
111+
params.delete(:target_url)
112+
end
110113
@response = service_post(status_url, params.to_json)
111114
end
112115
end

0 commit comments

Comments
 (0)