Getting Started with Open Source Collaboration #4
Openspace-ea
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Getting Started with Open Source Collaboration
A hands-on course for your first community contribution. Estimated time: ~2 hours. Prerequisites: a computer with Git installed, a GitHub account, and no prior open-source experience required.
本材料中文版见文末「开源协作入门(中文版)」。
Course Outline
Module 1 · Open Source Basics
Open source means the source code is public and licensed so that anyone may use, study, modify and redistribute it. For OSEA projects the software default license is Apache-2.0, which permits commercial use while requiring attribution and preserving the license notice.
Who is who:
The workflow you will learn is the same one used by nearly every project hosted on GitHub:
Module 2 · Git Essentials
2.1 Install and configure
Install Git from [git-scm.com](https://git-scm.com/downloads), then set your identity once:
2.2 The five commands you will use daily
2.3 Branches
A branch is an isolated line of work. Never commit directly to
main:2.4 Keeping your fork up to date
2.5 Commit messages
Use [Conventional Commits](https://www.conventionalcommits.org/) — one logical change per commit:
A good message completes the sentence: "If applied, this commit will …"
Module 3 · Issues
3.1 Finding work
Browse the open issues of the organization: [github.com/issues?q=is:issue is:open user:Openspace-ea](https://github.com/issues?q=is%3Aissue+is%3Aopen+user%3AOpenspace-ea).
Look for labels such as
good first issueorhelp wanted— they are explicitly left for newcomers. Comment on the issue to say you are working on it, so nobody duplicates the effort.3.2 Reporting a good issue
Satellite Watcher: map fails to render at zoom level 3.3.3 Asking a question well
State what you are trying to achieve, what you already tried, and the exact error. A question with a minimal reproduction usually gets an answer within hours.
Module 4 · The Fork → Branch → PR Workflow
Step 1 · Fork
Click Fork on the repository page. This creates your own copy.
Step 2 · Clone your fork
Step 3 · Create a branch
Step 4 · Make the change and verify it
Edit the files, then run the project's tests or lint command described in its README.
Step 5 · Commit and push
Step 6 · Open the Pull Request
In the GitHub UI (a link appears after pushing):
Closes #123.Step 7 · Review, revise, merge
A maintainer reviews your PR and may request changes. Address the feedback by pushing additional commits to the same branch — the PR updates automatically. Once approved and green, it is merged and you are a contributor.
Etiquette
Module 5 · Practice: Your First Contribution
Complete this once and the workflow becomes muscle memory.
good first issue, or improve a typo in a README.docs/fix-typo.git statusandgit diffto review your change.docs: fix typo in README.Checklist before you push
git statusis clean of surprises).Where to Go Next
开源协作入门(中文版)
面向第一次参与社区贡献的实操课程。预计用时 约 2 小时。
前置条件:已安装 Git 的电脑、一个 GitHub 账号,无需任何开源经验。
课程大纲
模块 1 · 开源基础
开源意味着源代码公开,并通过许可证允许任何人使用、研究、修改与再分发。OSEA 项目软件默认采用 Apache-2.0 许可证:允许商业使用,但要求署名并保留许可证声明。
角色说明:
你将学到的流程,与 GitHub 上几乎所有项目使用的流程一致:
模块 2 · Git 基础
2.1 安装与配置
从 [git-scm.com](https://git-scm.com/downloads) 安装 Git,然后一次性设置身份信息:
2.2 每天都会用到的五个命令
2.3 分支
分支是一条独立的工作线。永远不要直接在
main上提交:2.4 保持你的 Fork 与上游同步
2.5 提交信息规范
推荐使用 [Conventional Commits](https://www.conventionalcommits.org/),一次提交只做一件事:
好的提交信息应能补全这句话:“本次提交将会……”。
模块 3 · Issue
3.1 寻找可参与的任务
浏览组织下的开放 Issue:[github.com/issues?q=is:issue is:open user:Openspace-ea](https://github.com/issues?q=is%3Aissue+is%3Aopen+user%3AOpenspace-ea)。
优先关注
good first issue、help wanted等标签——它们正是留给新人的入口。选定后请在 Issue 下留言说明你正在处理,避免多人重复劳动。3.2 如何提交一个好的 Issue
Satellite Watcher:缩放级别 3 时地图无法渲染。3.3 如何提出一个好问题
说明你想达成什么、已经尝试过什么、报错信息是什么。附带最小可复现示例的提问,通常几小时内就会得到回应。
模块 4 · Fork → 分支 → PR 全流程
第 1 步 · Fork
在仓库页面点击 Fork,这会创建一份属于你的副本。
第 2 步 · 克隆你的 Fork
第 3 步 · 创建分支
第 4 步 · 修改并自测
编辑文件,然后运行该仓库 README 中说明的测试或检查命令。
第 5 步 · 提交并推送
第 6 步 · 发起 Pull Request
在 GitHub 界面中(推送后会提示创建入口):
Closes #123关联 Issue。第 7 步 · 评审、修改、合并
维护者会评审你的 PR,可能提出修改意见。你只需在同一分支继续提交,PR 会自动更新。通过评审与 CI 后即被合并,你也就成为了项目贡献者。
协作礼仪
模块 5 · 实战:你的第一次贡献
完整走一遍,流程就会变成本能。
good first issue,或修正 README 中的一处笔误。docs/fix-typo。git status与git diff检查改动。docs: 修正 README 笔误提交。推送前自查清单
git status无意外变更)。延伸阅读
All reactions