Bitbucket Server Query Request

So here is my situation and hopefully someone can clarify my thought process:

  • I have a private bitpack server
  • I have a user who has read-only access.
  • He creates a new local branch , does his work, now he is ready for a transfer request

  • Error: Bitbucket creates a pull request that requires two branches on the same repo to execute a pull request, but "dev" cannot push its branch since it has read-only access, not write access.

My question is, how can I create a transfer request using Bitbucket for A, send this local branch to be reviewed by my B team, and I want this "dev" to have read-only access?

+5
source share
1 answer

Decision 1 Branch Permissions

I suggest you first create a branch on the bitbucket server, with write permissions (this is usually done using Jira, so you can assign a task ID to the branch).

To handle branches and permissions check this guide . You can define a template with the appropriate permissions so that certain branches automatically apply these properties.

Then the user will do

$ git fetch origin $ git checkout feature/taskID-whatever 

After development, he will be able to push a branch and execute a stretch request in order to develop.

 $ git push origin feature/taskID-whatever 

Develop only need to read, but not branches.

Solution 2 Use fork

In the same tutorial that you follow, you will find how to fork . This way your developer will have a clone in his own bitbucket repository.

+7
source

Source: https://habr.com/ru/post/1261600/


All Articles