-
Notifications
You must be signed in to change notification settings - Fork 73
Repository Review API
Choldrim edited this page Apr 11, 2016
·
6 revisions
home page: https://rr.deepin.io
POST /review
- str: Access-Token - 用户token
- str: topic - 对这次合并请求的简单描述
- str: comment - 对这次合并的详细描述
- str: base - 基础仓库(需要填写完整url,如:http://pools.corp.deepin.com/deepin)
- str: base_codename - 基础仓库的代号,如unstable
- str: rpa - ppa仓库(需要填写完整url,如:http://pools.corp.deepin.com/ppa/dstore)
- str: rpa_codename - ppa仓库的代号,如unstable
- str: shell - 暂时为保留字段,直接回复空字符即可
{
"failed": false,
"result": {"review_id": 23}
}
GET /reviews
- str: Access-Token - 用户token
无
{
"failed": false,
"result": {
"reviews":[{
"id": 23,
"topic": "balaba",
"base": "http://packages.deepin.com/deepin",
"base_codename": "unstable",
"rpa": "http://pools.corp.deepin.com/ppa/dstore",
"rpa_codename": "experimental",
"status": "open",
"submit_timestamp": "1456999262"
},
{
"id": 24,
"topic": "balaba",
"base": "http://packages.deepin.com/deepin",
"base_codename": "unstable",
"rpa": "http://pools.corp.deepin.com/ppa/dstore",
"rpa_codename": "experimental",
"status": "open",
"submit_timestamp": "1456999262"
}
]
}
}
GET /review/:review_id
- str: Access-Token - 用户token
无
{
"failed": false,
"result": {
"id": 23,
"topic": "balaba",
"base": "http://packages.deepin.com/deepin",
"base_codename": "unstable",
"rpa": "http://pools.corp.deepin.com/ppa/dstore",
"rpa_codename": "experimental",
"comment": "comment",
"shell": "echo hello world",
"status": "open",
"submit_timestamp": "1456999262",
"comments":[
{
"submitter": "choldrim",
"content": "look good to me ;)",
"create_timestamp": "1456999262",
"score": 1
},
{
"submitter": "wangyanli",
"content": "start testing",
"create_timestamp": "1456999262",
"score": 0
},
{
"submitter": "wangyanli",
"content": "test failed",
"create_timestamp": "1456999262",
"score": 0
}
]
}
}
POST /comment/:review_id
- str: Access-Token - 用户token
- str: content - 评论内容
- int: score - 评分(-1 | 0 | 1)
{
"failed": false,
"result": ""
}
POST /test_result/:review_id
- str: Access-Token - 用户token
- str: comment - 评论内容
- bool: passed - 测试结果
{
"failed": false,
"result": ""
}
POST /merge/:review_id
- str: Access-Token - 用户token
无
{
"failed": false,
"result": ""
}
POST /merge_result/:review_id
- str: Access-Token - 用户token
- bool: passed - 仓库合并通过与否
- str: content - 附加的合并结果展示(可返回跳转到对应地址的url链接)
{
"failed": false,
"result": ""
}
POST /abandon/:review_id
- str: Access-Token - 用户token
无
{
"failed": false,
"result": ""
}
POST /retrigger_review/:review_id
- str: Access-Token - 用户token
无
{
"failed": false,
"result": ""
}
Welcome to join the Deepin developer community. You could talk about even everything in the following channels:
-
GitHub developer center(recommended)
-
IRC #deepin channel(recommended)
- Google groups: deepin-users, deepin-developers