【问题标题】:phabricator curl commandline for creating repository用于创建存储库的 phabricator curl 命令行
【发布时间】:2021-05-18 16:51:16
【问题描述】:

有人可以帮我用 curl 创建一个 git 存储库吗?

我根据文档尝试:

curl  https://my-url.eu/api/diffusion.repository.edit \
    -d api.token=api-my-token \
    -d transactions[0][type]=vcs \
    -d transactions[0][value]=git \
    -d transactions[1][type]=name \
    -d transactions[1][value]=testing-api-repo \
    -d objectIdentifier=

返回: zsh:未找到匹配项:transactions[0][type]=vcs

还有我的第二个问题:有没有办法通过 cli 创建管道 API 令牌?这对自动化非常有用

【问题讨论】:

    标签: bitnami phabricator


    【解决方案1】:

    我找到了:

    curl -k -s -X POST https://URL/api/diffusion.repository.edit \
    -d api.token=api-TOKEN_HERE \
    -d 'transactions[0][type]=vcs' \
    -d 'transactions[0][value]=git' \
    -d 'transactions[1][type]=name' \
    -d 'transactions[1][value]=testing' | jq -r
    

    【讨论】:

      猜你喜欢
      • 2020-11-29
      • 2022-12-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多