防止-公共-存储库Probot应用程序未将存储库更改为私有
到目前为止,我已经调整了参数并测试了各种值的组合。从我的Github企业帐户(我们正在使用云)上看到的是,有一个新的存储库状态为Internal --不再是Public / Private。我想知道这是否破坏了将此存储库改回Private的API调用。
# Turn on Monitor Mode. In this mode the repo visibility is not modified and only an Issue is created
monitorOnly: false
# Enables detection of repos that change visibility from private to public (not just newly created ones)
enablePrivateToPublic: false我们收到了一些问题,提醒我们测试存储库的状态从Private更改为Public。最后一个方法changeVisibility()似乎没有正确执行。
发布于 2019-06-19 22:11:12
我最终弄清楚了这一点,并在这个项目上创建了一个问题。https://github.com/issc29/probot-prevent-public-repos/issues/14
为那些不想点击上面的票证的人提供一个修改后的答案。
我需要启用谁可以调整组织的存储库可见性,这不在设置此项目的说明README.md中,可能应该作为一个步骤列出在Get Started中,例如,“验证在member Privileges"
# Enables detection of repos that change visibility from private to public (not just newly created ones)
# true -- will prevent a Private repo from transitioning to Public scope, unless this repository is listed in the excludeRepos list below
# false -- will allow a Private repo to transition to Public scope and only create an issue about this transitionhttps://stackoverflow.com/questions/56652103
复制相似问题