This is an automated email from the ASF dual-hosted git repository.

fanjia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new ba1de2493adb [Improve] Update submit code guide (#359)
ba1de2493adb is described below

commit ba1de2493adb778d3f9d718cac382e1a16e51016
Author: Jia Fan <fanjiaemi...@qq.com>
AuthorDate: Fri Feb 14 11:35:33 2025 +0800

    [Improve] Update submit code guide (#359)
---
 community/submit_guide/submit-code.md               | 21 +++++++++++----------
 .../current/submit_guide/submit-code.md             | 21 +++++++++++----------
 2 files changed, 22 insertions(+), 20 deletions(-)

diff --git a/community/submit_guide/submit-code.md 
b/community/submit_guide/submit-code.md
index 6bed911e8585..ecaac5f4a941 100644
--- a/community/submit_guide/submit-code.md
+++ b/community/submit_guide/submit-code.md
@@ -11,19 +11,21 @@ sidebar_position: 2
     * **dev**   daily development branch
       > Every day dev development branch, newly submitted code can pull 
request to this branch.
 
-    * **3.2.0-release** release version branch
-      > The release version branch, there will be 4.0...and other version 
branches in the future.
+    * **2.3.9-release** release version branch
+      > The release version branch, there will be 3.0...and other version 
branches in the future.
+
+* Take your fork repository named `seatunnel` as an example
 
 * Clone your repository to your local
 
     ```shell
-    git clone https://github.com/apache/seatunnel
+    git clone g...@github.com:<YOUR_GITHUB_ID>/seatunnel.git
     ```
 
 * Add remote repository address, named upstream
 
     ```shell
-    git remote add upstream https://github.com/apache/seatunnel
+    git remote add upstream g...@github.com:apache/seatunnel.git
     ```
 
 * View repository
@@ -46,12 +48,11 @@ sidebar_position: 2
     git checkout origin/dev
     git merge --no-ff upstream/dev
     ```
-
-* If remote branch has a new branch such as `dev-1.0`, you need to synchronize 
this branch to the local repository
+  
+* Create a new branch to modify the code
 
     ```shell
-    git checkout -b dev upstream/dev-1.0
-    git push --set-upstream origin dev-1.0
+    git checkout -b feature-xxx
     ```
 
 * After modifying the code locally, submit it to your own repository:
@@ -63,10 +64,10 @@ sidebar_position: 2
 
 * Submit changes to the remote repository
 
-* On the github page, click "New pull request".
+* On the GitHub page, click "New pull request".
 
 * Select the modified local branch and the branch you want to merge with the 
past, click "Create pull request".
 
 * Then the community Committers will do CodeReview, and then he will discuss 
some details (including design, implementation, performance, etc.) with you. 
When everyone on the team is satisfied with this modification, the commit will 
be merged into the dev branch
 
-* Finally, congratulations, you have become an official contributor to Apache 
SeaTunnel !
+* Finally, congratulations, you have become an official contributor to Apache 
SeaTunnel!
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/submit_guide/submit-code.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/submit_guide/submit-code.md
index ca7b77a9d8d2..e0d70fe19f46 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/submit_guide/submit-code.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs-community/current/submit_guide/submit-code.md
@@ -5,25 +5,27 @@ sidebar_position: 2
 
 # 提交代码
 
-* 首先从远端仓库 <https://github.com/apache/incubator-seatunnel.git> fork一份代码到自己的仓库中
+* 首先从远端仓库 <https://github.com/apache/seatunnel.git> fork一份代码到自己的仓库中
 
 * 远端仓库中目前有三个分支:
     * **dev**    日常开发分支
     > 日常dev开发分支,新提交的代码都可以pull request到这个分支上。
 
-    * **1.0.0-release** 发布版本分支
-    > 发布版本分支,后续会有2.0...等版本分支。
+    * **2.3.9-release** 发布版本分支
+    > 发布版本分支,后续会有3.0...等版本分支。
+
+* 以您fork的仓库命名为`seatunnel`为例
 
 * 把自己仓库clone到本地
 
     ```shell
-    git clone g...@github.com:apache/incubator-seatunnel.git
+    git clone g...@github.com:<YOUR_GITHUB_ID>/seatunnel.git
     ```
 
 * 添加远端仓库地址,命名为upstream
 
     ```shell
-    git remote add upstream g...@github.com:apache/incubator-seatunnel.git
+    git remote add upstream g...@github.com:apache/seatunnel.git
     ```
 
 * 查看仓库:
@@ -47,11 +49,10 @@ sidebar_position: 2
     git merge --no-ff upstream/dev
     ```
 
-* 如果远端分支有新加的分支比如`dev-1.0`,需要同步这个分支到本地仓库
+* 创建一个新的分支来修改代码
 
     ```shell
-    git checkout -b dev-1.0 upstream/dev-1.0
-    git push --set-upstream origin dev-1.0
+    git checkout -b feature-xxx
     ```
 
 * 在本地修改代码以后,提交到自己仓库:
@@ -63,10 +64,10 @@ sidebar_position: 2
 
 * 将修改提交到远端仓库
 
-    * 在 github 的 PullRequest 页面,点击 "New pull request".
+    * 在 GitHub 的 PullRequest 页面,点击 "New pull request".
 
     * 选择修改完的本地分支和要合并的目的分支,点击 "Create pull request".
 
 * 接着社区 Committer 们会做 
CodeReview,然后他会与您讨论一些细节(包括设计,实现,性能等)。当团队中所有人员对本次修改满意后,会将提交合并到dev分支
 
-* 最后,恭喜您已经成为了 Apache Seatunnel 的官方贡献者!
+* 最后,恭喜您已经成为了 Apache SeaTunnel 的官方贡献者!

Reply via email to