bitbucket 是否有页面锁定时间段+次数的功能或插件?
Welcome to the Atlassian Community!
What do you mean by "page lock"?
Maybe there is a problem with my expression, the code base needs to be locked for a limited time, or the user needs to kick out the specified code base regularly。
Excuse me for the translation software I use
Why would you need to stop people using it for a time?
Prepared for temporary use by third parties
Hi @SWRD-Lastertech-Admin,
If you are looking to prevent users from changing the source code during a specific time frame, we don't have such a feature available out of the box.
You can temporarily change the permissions of users and user groups to a certain repository to Read (this way they won't be able to change the source code of the repo), and then switch back to the original permissions.
You can do it from the Bitbucket website, if you open a repo then go to Repository settings > User and group access
Alternatively, you could also use our APIs to write a script and change the permissions to Read (and then change them back to the original permissions):
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-groups-group-slug-put
https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-repo-slug-permissions-config-users-selected-user-id-put
Kind regards,Theodora
It looks like you're new here. Sign in or register to get started.