Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ginue push で pushTarget のゲストスペースIDが設定されない #50

Open
kawamurayuto opened this issue May 10, 2024 · 1 comment

Comments

@kawamurayuto
Copy link

こちらのモジュールにはいつもお世話になっています。
ありがとうございます。

今回以下のような設定で npm run ginue push dev:prd -A user-master を実行した場合、

{
  "location": "kintone-settings",
  "env": {
    "dev": {
      "domain": "example.cybozu.com",
      "guest": 1,
      "app": {
        "user-master": 1
      }
    },
    "prd": {
      "domain": "example.cybozu.com",
      "guest": 1,
      "app": {
        "user-master": 2
      }
    }
  }
}

prd の guestSpaceId が設定されませんでした。

出力は以下のとおりです。

location: "kintone-settings"
environment: "dev"
domain: "example.cybozu.com"
app: {
  "user-master": 1
}
guestSpaceId: 1
appName: "user-master"

location: "kintone-settings"
environment: "prd"
domain: "example.cybozu.com"
app: {
  "user-master": 2
}
appName: "user-master"

対象のコードは下記かと思います。

targetGinuercElem.pushTarget = pushTargetGinuercElem

下記のように引数を変換する処理をいれると期待通り動作しました。

targetGinuercElem.pushTarget = pluckOpts(argv, pushTargetGinuercElem)

ご確認のほどよろしくお願いいたします。

@the-red
Copy link
Member

the-red commented May 13, 2024

@kawamurayuto
フィードバックありがとうございます!
たしかにこの辺、テストが甘かったですね。
修正案もありがとうございます。早めに直せるようにしますね。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants