The GitHub Blog 03月07日
Four steps toward building an open source community
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文探讨了如何将开源项目发展为健康的社区。文章强调了早期社区建设的重要性,包括制定贡献者指南和行为准则。同时,建议项目维护者主动参与社区,在用户常用的平台与他们互动,并积极参与线下活动。此外,以身作则,营造积极友好的社区氛围至关重要,要耐心对待新用户,鼓励提问。最后,文章强调了对贡献者的认可,无论是代码贡献者还是文档、社区支持等非代码贡献者,都应得到重视和感谢。通过这些步骤,开源项目可以逐步建立起一个充满活力和凝聚力的社区。

🌱 **早期规划,奠定基础**: 在项目初期就应考虑社区建设,制定贡献者指南和行为准则,为潜在的贡献者提供清晰的参与规则和行为规范。

📢 **主动参与,融入社区**: 项目维护者应积极参与到用户所在的平台,如Discord、Slack等,主动回应问题,参与讨论。同时,也要重视线下交流,通过会议和聚会与用户和贡献者建立联系。

🤝 **以身作则,树立榜样**: 维护者应以身作则,用实际行动来引导社区氛围。耐心对待新用户,鼓励提问,营造积极友好的交流环境。

🌟 **认可贡献,激励参与**: 公开感谢贡献者,无论其贡献是代码、文档还是社区支持。通过多种方式,如在README文件中致谢、在LinkedIn上进行推荐等,提升贡献者的成就感和归属感。

Open source projects generally begin with a problem to be solved. If it’s a problem a lot of people have, it may gain traction. Eventually you might have many people contributing. Before you know it, your project might turn into more than just a project, but a community.

That requires you as a maintainer to think differently about what you’re doing. It’s no longer just about writing code, but about facilitating relationships.

In this article, we’ll explore four steps to take to help your open source project evolve into a healthy community.

1. Lay the ground work early

It’s never too early to start thinking about community. The Astro team had community building in mind from the very beginning of the project. “It was one of the first things we focused on once we had a minimum viable product (MVP) together,” Astro co-creator Fred Schott told us in a Q&A on open source community building.

There’s quite a bit you can do to prepare before people start showing up. Among the most important is creating contributor guidelines and adopting a code of conduct. “You’d be surprised at how early contributor guidelines come in handy,” Schott says. “You need to answer questions like ‘How do I clone the repo?’ or ‘How do I get the packages installed?'” These basic things might seem obvious. But maintainers have been in their codebases for so long that they forget how hard it can be for new people to get started.

Many maintainers think a code of conduct isn’t something they need to worry about when the project is small and conflicts between contributors have yet to arise. But it’s best to have clearly articulated expectations and a plan for what to do if someone violates them before they are needed. “If you care about outside contributions at all, you should have a code of conduct, regardless of size,” Schott says. “It’s more about intent: If your goal is to build a community or encourage outside contributors on your project, then you’ll want a code of conduct. If your repo is meant to be a solo project, then I think you’re fine to skip it.”

2. Meet people where they are

Building your own community spaces on platforms like Discord, Slack, and GitHub Discussions is important, but in the early days you need to meet people where they are. Graphile co-maintainer Jem Gillam says the team used F5bot to watch for mentions of Graphile across the web and social media so the team could answer questions and join conversations where they were already taking place. Eventually, as a project grows, a community will cohere in a particular place.

Think offline, too. Conferences and meetups are a great way to meet current and potential users and contributors. “I go to conferences and let people know that we’re looking for contributors and that we’ll walk anyone through submitting their first pull request,” says dbatools creator and maintainer Chrissy LeMaire. “I entice people by letting them know they can safely cut their teeth with us.”

3. Lead by example

Having a code of conduct is one thing. But it’s more important to conduct yourself the way you want your community to act. Schott emphasizes the importance of being patient with new users. “If you’re dismissive of the problems people face, they’ll leave,” he says. “First impressions are important.”

It’s important to set the right tone. “If there’s something that has come up that’s really negative, we tend to give it time—we don’t react in the moment,” Gillam says. The team strives to assume good intent because often people might come across more harshly than they intend, especially if they’re not writing in their native language. “It’s very easy for people to think they have a silly question, but we encourage people to ask them anyway because if one person has a particular question other people probably do as well,” Gillam says.

LeMaire recommends being open about what you don’t know and where you personally struggle. She livestreamed her work on Twitch to show people that even as a Microsoft Most Valuable Professional and GitHub Star she still struggled and made mistakes. “I show people that it’s OK not to know everything and that they don’t have to use the most intimidating or complicated tools to be effective,” she says.

4. Spotlight your contributors

Be sure to show your appreciation for your contributors. You can thank them in the README file on your repo. LeMaire set up a LinkedIn company for dbatools and told contributors they were welcome to add themselves. It helped contributors spotlight their contributions outside of GitHub, and even helped some find jobs.

Don’t forget to recognize the non-code contributors as well. “Our documentation used to assume that core contributors were technical contributors, so we had some technical requirements,” Schott explains. Initially, the Astro project required someone to make “significant code contributions” to become a core contributor. Now the team evalutates non-code contributions when considering whether to promote someone to core contributor status.

“People contribute in lots of different ways, from documentation to community support,” Schott says. “We’ve updated our expectations accordingly.”

Get started contributing to open source now!

The post Four steps toward building an open source community appeared first on The GitHub Blog.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

开源项目 社区建设 贡献者 行为准则
相关文章