可以使用
在手册中,我只能在这里找到有关
gh
命令行工具为一个存储库https://github.com/org/repo/settings/environments创建一个新的环境吗?在手册中,我只能在这里找到有关
environment
的提及https://cli.github.com/manual/gh_secret_set,其中它说可以将秘密分配给现有环境,但似乎必须手动创建环境。
deployment_branches
?我尝试了-d '{"deployment_branches":["branch1", "branch2"]}'
https://docs.github.com/en/rest/reference/deployments#create-or-update-an-environment - gary69