是否可以在 bitbucket 中的文件夹级别添加审阅者?

发布于 2025-01-19 09:53:32 字数 523 浏览 3 评论 0原文

我们可以在项目级别或回购级别具有分支机构权限,要求是 - 有没有办法在文件夹级别获得分支机构权限。

当开发人员提出代码更改的公关时,根据分支机构的许可,我们将有默认的审阅者在合并之前审查和批准PR。对于存储库,我们可以拥有不同的默认审阅者集。

同样,如果我的XXX文件夹中发生任何文件更改,则特定的审阅者应批准PR。如果XXX文件夹中没有发生更改,则任何人都可以批准并合并PR。

例如,以下是我的文件夹结构,我在存储级级别具有权限。 X,Y和Z是默认的审阅者。合并PR所需的一个批准。

Project A
 -repoA
   --folder1
 -repoB
   --folder2
   --folder3
   --folder4

开发人员为REPOB提出PR,如果folder4中发生任何更改,则必须将PRON批准合并。

如果在folde4中没有发生任何更改,则任何批准者都可以审查,批准和合并PR。

让我知道这是否可以实现!

We can have the branch permissions at the Project level or at the repo level, requirement is - is there a way can we have the branch permissions at the folder level.

When developers raise a PR for code change, as per branch permission we have default reviewers to review and approve the PR's before merging. We can have different set of Default reviewers with respect to repos.

Similarly if any file changes is happening inside my xxx folder then particular reviewer should approve the PR. If there no changes happening inside xxx folder then anyone can approve and merge the PR.

For example, below is my folder structure and I have permissions at the repo level. X,Y and Z are the default reviewers. One approval needed to merge the PR.

Project A
 -repoA
   --folder1
 -repoB
   --folder2
   --folder3
   --folder4

developer raising a PR for repoB, if there is any change happening in folder4 then PersonX approval is mandatory to merge that PR.

if there is no changes is happening in folde4 then any approver can review, approve and merge the PR.

Let me know if this is possible to achieve!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

揪着可爱 2025-01-26 09:53:32

您可以通过 Bitbucket 的代码所有者

在您的示例中,要自动将“PersonX”分配给拉取请求中“folder4”中发生的所有更改,并需要一次批准作为合并检查(仅限 Bitbucket 服务器/DC),请放置一个 CODEOWNERS 文件位于您的存储库“repoB”中,如下所示:

folder4/          @PersonX

OverallCheck(1)

有关详细信息,请检查 应用文档

免责声明:我们是这个应用程序的作者。

You can achieve fine-granular pull request reviewer assignments and merge checks with Code Owners for Bitbucket.

In your example, to automatically assign "PersonX" to all changes that happen in "folder4" in a pull request, and to require one approval as a merge check (Bitbucket server/DC only), put a CODEOWNERS file like follows in your repository "repoB":

folder4/          @PersonX

OverallCheck(1)

For more information, please check the app's documentation.

Disclaimer: we are the authors of this app.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文