-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What problem were solved in this pull request? Issue Number: close #283 Problem: 当前训练营提测比赛项目时,需要邀请官方后台选手增加代码仓库权限,github需要后台审批,会有延迟。 ### What is changed and how it works? 支持填写提测URL时,URL 中包含 user:token 来提测private仓库,不需要再邀请官方后台测试人员增加权限,效率提升。
- Loading branch information
Showing
10 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ title: MiniOB GitHub 在训练营中的使用说明 | |
|
||
## 简介 | ||
|
||
训练营测试后端现在支持使用 [GitHub](https://github.com) 和 [Gitee](https://gitee.com) 作为代码仓库管理平台。 | ||
|
||
本文介绍如何在GitHub上创建私有仓库,并将MiniOB代码提交到自己的仓库中,然后在训练营中进行测试。 | ||
|
||
MiniOB 仓库地址:<https://github.com/oceanbase/miniob> | ||
|
@@ -48,7 +46,51 @@ https://github.com/oceanbase/miniob | |
|
||
![view repo](images/github-view-repo.png) | ||
|
||
6. 邀请OceanBase测试账号 | ||
## 仓库权限设置 | ||
|
||
到此为止,已经创建完了私有仓库,并导入了代码。但是此时官方测试账号并没有权限查看你的代码,接下来需要给官方测试账号添加权限。有两种方法,一种是生成token,另一种是邀请OceanBase测试账号。 | ||
|
||
### 生成token | ||
1. 在GitHub页面,点击个人头像,选择"Settings",进入个人设置页面。 | ||
![personal settings](images/github-personal-settings.png) | ||
|
||
2. 接着在左侧导航栏中选择"Developer settings",进入开发者设置页面。 | ||
![develop settings](images/github-developer-settings.png) | ||
|
||
3. 找到生成新token的页面。 | ||
![generate new token](images/github-generate-new-token.png) | ||
|
||
4. 填写token的信息,生成token。 | ||
![fill out token info](images/github-fill-out-token-form.jpg) | ||
|
||
5. 生成token后要第一时间保存,离开页面后将无法再次查看。 | ||
![save token](images/github-save-token.png) | ||
|
||
6. 验证token是否生效 | ||
执行 git clone 命令,URL中带上 username和token,如果能够正常clone,则说明token生效。 | ||
|
||
```bash | ||
git clone https://`your-github-username`:`github_pat_your-github-token`@github.com/`repo-owner`/`repo-name` | ||
``` | ||
|
||
> your-github-username 替换成你的GitHub用户名<br/> | ||
> github_pat_your-github-token 替换成你的生成的token<br/> | ||
> repo-owner 替换成你的仓库所属者,通常也是你的GitHub用户名<br/> | ||
> repo-name 替换成你的仓库名,比如 miniob-2024 | ||
比如: | ||
|
||
```bash | ||
git clone https://hnwyllmm:[email protected]/hnwyllmm/miniob-2023 | ||
``` | ||
|
||
一个clone成功的例子 | ||
![validate token](images/github-validate-token.png) | ||
|
||
**注意:提测时的URL需要填写带user:token的地址** | ||
![commit](images/github-commit-info.png) | ||
|
||
### 邀请OceanBase测试账号 | ||
|
||
点击"Settings"标签,进入仓库设置页面,点击"Collaborators"标签,进入仓库权限管理页面。 | ||
|
||
|
@@ -66,8 +108,9 @@ GitHub 在邀请别人加入仓库时,会发送邮件通知被邀请人,需 | |
|
||
![pending invite](images/github-pending-invite.png) | ||
|
||
![invite success](images/images/github-invite-success.png) | ||
![invite success](images/github-invite-success.png) | ||
|
||
7. 提交测试 | ||
## 提交测试 | ||
|
||
等官网人员通过邀请后,就可以提交测试了。训练营的使用说明不再赘述,可以参考 [训练营使用说明](https://ask.oceanbase.com/t/topic/35600372)。 | ||
如果是邀请OceanBase测试账号,需要等官网人员通过邀请后,开始提交测试。 | ||
训练营的使用说明不再赘述,可以参考 [训练营使用说明](https://ask.oceanbase.com/t/topic/35600372)。 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.