Skip to content

Commit 3401eaf

Browse files
authored
Update README.md: add homework tutorial
1 parent 853dd83 commit 3401eaf

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,38 @@ git clone <先前复制的仓库URI>
131131
```bash
132132
git push --all
133133
```
134+
135+
### 作业提交
136+
每一讲的作业提交采用如下流程:
137+
- 本地修改对应分支
138+
- 提交修改到对应分支
139+
- 向本仓库对应分支提交PR
140+
- 关联PR到对应Issue
141+
- 查看作业批改结果
142+
##### 本地修改对应分支
143+
fork本仓库所有分支后,根据[Issue](https://github.com/eesast/web-workshop/issues)对应讲作业要求,在本地切换到对应分支进行修改
144+
```
145+
git checkout "01-HTML&CSS"
146+
```
147+
##### 提交修改到对应分支
148+
完成修改后,将改动提交到本地并推送到云端 Fork 仓库
149+
```
150+
git push origin "01-HTML&CSS"
151+
```
152+
##### 向本仓库对应分支提交PR
153+
打开在 GitHub 上 Fork 的仓库页面后,切换到刚刚推送的 对应分支(如 lesson1)
154+
155+
点击 "Compare & pull request" 按钮,并在 PR 创建页面填写相关信息
156+
##### 关联PR到对应Issue
157+
PR提交后,需手动关联PR到对应Issue
158+
在PR界面右侧栏位点击'Development'旁边的⚙️标志,选择对应讲次的Issue进行关联
159+
<img width="316" height="543" alt="image" src="https://github.com/user-attachments/assets/10cd0817-6b40-4040-9349-c52e4ad478c2" />
160+
[示例PR](https://github.com/eesast/web-workshop/pull/12)
161+
关联完成后,作业提交完毕
162+
##### 查看作业批改结果
163+
作业由讲师批改后,对应 PR 会被打上标签:
164+
- accepted ✅:作业通过,PR 会被关闭。
165+
- require revision 🔄:需要修改,PR 保持 open 状态。
166+
167+
168+
若需修改,按 PR 下方的评论提示进行更改,然后重复 步骤 2 → 步骤 3 提交更新。

0 commit comments

Comments
 (0)