Empowering Code Ownership

Harmeet Kaur
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2024

"What strategies have you found most effective in fostering a culture of code ownership and collaboration within your Bitbucket repository teams?"

2 answers

1 vote
Ulrich Kuhnhardt _IzymesCo_
Atlassian Partner
May 15, 2024

Hi Harmeet,

that's a very good question! I've got a few points that I find important:

Defined Ownership: Assign clear ownership of specific modules, components, or services to individual team members or sub-teams via Bitbucket repository or AD groups. This ensures accountability and pride in the team's work. Use the Bitbucket CodeOwners DC / Cloud or a Atlassian Marketplace app like Workzone with its UI-based workspace, project and repository reviewer configurations.

Ownership Rotation: Rotate ownership periodically to promote knowledge sharing and reduce dependency on specific individuals.

Pull request code reviews: Implement a rigorous pull request code review process in Bitbucket. Encourage or even enforce team members to review each other's code, providing constructive feedback. In Bitbucket you can require a minimum number of approvals for each pull request, or if you want to optimize your pull request workflow from creation to merge you can also use apps like Workzone to optimize the review and merge experience.


Pair Programming: Promote pair programming sessions to foster collaboration, mentorship, and knowledge transfer. Some organizations consider this a luxury, however I think pair programming is best at the beginning of a project when the code foundations are laid out.

Automated Testing and CI/CD: Use continuous integration and continuous deployment (CI/CD) pipelines to automate testing and deployment, ensuring code quality and reducing friction in collaboration. This way the teams know that their code builds, passes functional tests and is within the code quality expectations.

API documentation: It's crucial that different services talk to each other via (REST) APIs. Ensure that each team documents (programmatically via code annotations) their services' interface and generates the interface spec for each release.

Regular Communication and Feedback: Run regular retrospectives and implement a developer satisfaction feedback loop to detect blockers early.

 

That's quite a lot to implement all at once! I believe addressing code ownership, reviews and pull request merge-control is the absolute minimum you should start with.

Good luck and let me know if you have any questions!

Ulrich

// Izymes

Harmeet Kaur
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2024

Now I have also found the answer of this thread. I want to upload this code on my this site https://pakistanielection.com/

Here are some tricks that I followed.

Regular code reviews, fostering open communication, and promoting a sense of collective responsibility have been key in fostering a culture of code ownership and collaboration within our Bitbucket repository teams.

1 vote
Michael Rüegg _Mibex Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2024

Hi,

Welcome to the Atlassian Community!

We have written a blog post about the topic of code ownership with the concept of Code Owners.

It shows examples for various SCM systems (including Bitbucket), and also discusses topics like code ownership in monorepos, PR reviews with code ownership and its challenges like notification noise and more.

You might find that useful.

Best regards,

Michael from Mibex (app vendor of Code Owners for Bitbucket)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events