首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >防止-private-repos probot不起作用

防止-private-repos probot不起作用
EN

Stack Overflow用户
提问于 2019-06-18 23:05:45
回答 1查看 136关注 0票数 0

防止-公共-存储库Probot应用程序未将存储库更改为私有

到目前为止,我已经调整了参数并测试了各种值的组合。从我的Github企业帐户(我们正在使用云)上看到的是,有一个新的存储库状态为Internal --不再是Public / Private。我想知道这是否破坏了将此存储库改回Private的API调用。

代码语言:javascript
复制
# 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()似乎没有正确执行。

EN

回答 1

Stack Overflow用户

发布于 2019-06-19 22:11:12

我最终弄清楚了这一点,并在这个项目上创建了一个问题。https://github.com/issc29/probot-prevent-public-repos/issues/14

为那些不想点击上面的票证的人提供一个修改后的答案。

我需要启用谁可以调整组织的存储库可见性,这不在设置此项目的说明README.md中,可能应该作为一个步骤列出在Get Started中,例如,“验证在member Privileges"

  • The中选择了‘允许成员更改此组织的存储库可见性’的权限enablePrivateToPublic的值: false应设置为true而不是false。”这一行上面的文字有点令人困惑。它应该得到澄清,或者可能更改此变量的名称,这将破坏向后兼容性。也许可以添加额外的注释来澄清,例如:

代码语言:javascript
复制
# 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 transition
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56652103

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档