yuntijs / yunti

A lowcode platform
MIT License
0 stars 3 forks source link

[Bug] Data field has changed when create a merge request #15

Closed lihaorong840506 closed 7 months ago

lihaorong840506 commented 7 months ago

💻 系统环境 | Operating System

Windows

🐛 问题描述 | Bug Description

API:

Write your query or mutation here

mutation createMergeRequest($mergeRequestInput: MergeRequestInput!) {
  createMergeRequest(mergeRequestParam: $mergeRequestInput) {
    sourceBranchName,
    targetBranchName,
    title,
    description,
    options,
    mergeRequestStatus,
    createAt,
    updateAt,
  }
}

Before query variables:

{ 
  "mergeRequestInput":
  {
    "source_branch":"app-lfon8/user-0ekq4/tttt2",
    "target_branch":"app-lfon8/user-0ekq4/ttt",
    "title":"tttt",
    "description":"ttttt",
    "assignee_id":"user-0ekq4",
    "options": "{\"delSourceBranch\":1}"
  }
}

Required query variables:

{ 
  "mergeRequestInput":
  {
    "sourceBranch":"app-lfon8/user-0ekq4/tttt2",
    "targetBranch":"app-lfon8/user-0ekq4/ttt",
    "title":"tttt",
    "description":"ttttt",
    "assigneeId":"user-0ekq4",
    "options": "{\"delSourceBranch\":1}"
  }
}

🚦 期望结果 | Expected Behavior

{ 
  "mergeRequestInput":
  {
    "sourceBranch":"app-lfon8/user-0ekq4/tttt2",
    "targetBranch":"app-lfon8/user-0ekq4/ttt",
    "title":"tttt",
    "description":"ttttt",
    "assigneeId":"user-0ekq4",
    "options": "{\"delSourceBranch\":1}"  // new added
  }
}

📷 复现步骤 | Recurrence Steps

No response

📝 补充信息 | Additional Information

"options": "{\"delSourceBranch\":1}":

delSourceBranch: 1 => delete source branch after merged.

delSourceBranch: 0 => nothing to do after merged.

yunti-bot commented 7 months ago

👀 @lihaorong840506 Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

lihaorong840506 commented 7 months ago

14

Carrotzpc commented 7 months ago

@zggmd try @yuntijs/yunti-bff-sdk@1.0.1

Carrotzpc commented 7 months ago

resolved in #18

yunti-bot commented 7 months ago

✅ @lihaorong840506
This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。