You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by li...@apache.org on 2023/05/06 02:01:24 UTC

[incubator-devlake] branch main updated: fix(config-ui): update the webhook deployment sample (#5101)

This is an automated email from the ASF dual-hosted git repository.

likyh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 4811adf53 fix(config-ui): update the webhook deployment sample (#5101)
4811adf53 is described below

commit 4811adf5324e62df945c8889ea6f900db3c31e8b
Author: 青湛 <0x...@gmail.com>
AuthorDate: Sat May 6 10:01:20 2023 +0800

    fix(config-ui): update the webhook deployment sample (#5101)
---
 .../src/plugins/register/webook/create-dialog/use-create.ts    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/config-ui/src/plugins/register/webook/create-dialog/use-create.ts b/config-ui/src/plugins/register/webook/create-dialog/use-create.ts
index 84a1ccd9d..d1920d57e 100644
--- a/config-ui/src/plugins/register/webook/create-dialog/use-create.ts
+++ b/config-ui/src/plugins/register/webook/create-dialog/use-create.ts
@@ -54,11 +54,11 @@ export const useCreate = ({ onSubmitAfter }: UseCreateProps) => {
       setRecord({
         postIssuesEndpoint: `${prefix}${res.postIssuesEndpoint}`,
         closeIssuesEndpoint: `${prefix}${res.closeIssuesEndpoint}`,
-        postDeploymentsCurl: `curl ${prefix}${res.postPipelineDeployTaskEndpoint} -X 'POST' -d "{
-        \\"commit_sha\\":\\"the sha of deployment commit\\",
-        \\"repo_url\\":\\"the repo URL of the deployment commit\\",
-        \\"start_time\\":\\"Optional, eg. 2020-01-01T12:00:00+00:00\\"
-      }"`,
+        postDeploymentsCurl: `curl ${prefix}${res.postPipelineDeployTaskEndpoint}-X 'POST' -d '{
+          \\"commit_sha\\":\\"the sha of deployment commit\\",
+          \\"repo_url\\":\\"the repo URL of the deployment commit\\",
+          \\"start_time\\":\\"eg. 2020-01-01T12:00:00+00:00\\"
+        }'`,
       });
     } else if (success) {
       onSubmitAfter?.(res.id);