await octokit.request('GET /api/users/:login/applied_projects.json')
+curl -X POST http://localhost:3000/api/users/yystopf/applied_transfer_projects/2/refuse.json
+
await octokit.request('GET /api/users/:login/applied_transfer_projects/:id/refuse.json')
HTTP 请求
-GET /api/users/:login/applied_projects.json
+GET /api/users/:login/applied_transfer_projects/:id/refuse.json
请求字段说明:
@@ -3947,6 +3997,11 @@ Success — a happy kitten is an authenticated kitten!
string |
用户标识 |
+
+id |
+int |
+迁移id |
+
返回字段说明:
@@ -3959,6 +4014,192 @@ Success — a happy kitten is an authenticated kitten!
id |
int |
+迁移id |
+
+
+status |
+string |
+迁移状态,canceled:取消,common:正在迁移, accept:已接受,refuse:已拒绝 |
+
+
+time_ago |
+string |
+迁移创建的时间 |
+
+
+project.id |
+int |
+迁移项目的id |
+
+
+project.identifier |
+string |
+迁移项目的标识 |
+
+
+project.name |
+string |
+迁移项目的名称 |
+
+
+project.description |
+string |
+迁移项目的描述 |
+
+
+project.is_public |
+bool |
+迁移项目是否公开 |
+
+
+project.owner.id |
+bool |
+迁移项目拥有者id |
+
+
+project.owner.type |
+string |
+迁移项目拥有者类型 |
+
+
+project.owner.name |
+string |
+迁移项目拥有者昵称 |
+
+
+project.owner.login |
+string |
+迁移项目拥有者标识 |
+
+
+project.owner.image_url |
+string |
+迁移项目拥有者头像 |
+
+
+user.id |
+int |
+迁移创建者的id |
+
+
+user.type |
+string |
+迁移创建者的类型 |
+
+
+user.name |
+string |
+迁移创建者的名称 |
+
+
+user.login |
+string |
+迁移创建者的标识 |
+
+
+user.image_url |
+string |
+迁移创建者头像 |
+
+
+owner.id |
+int |
+迁移接受者的id |
+
+
+owner.type |
+string |
+迁移接受者的类型 |
+
+
+owner.name |
+string |
+迁移接受者的名称 |
+
+
+owner.login |
+string |
+迁移接受者的标识 |
+
+
+owner.image_url |
+string |
+迁移接受者头像 |
+
+
+
+
+返回的JSON示例:
+
+{
+ "project": {
+ "id": 86,
+ "identifier": "ceshi_repo1",
+ "name": "测试项目啊1",
+ "description": "二十多",
+ "is_public": true,
+ "owner": {
+ "id": 52,
+ "type": "Organization",
+ "name": "身份卡手动阀",
+ "login": "ceshi1",
+ "image_url": "images/avatars/Organization/52?t=1618805056"
+ }
+ },
+ "user": {
+ "id": 6,
+ "type": "User",
+ "name": "yystopf",
+ "login": "yystopf",
+ "image_url": "system/lets/letter_avatars/2/Y/241_125_89/120.png"
+ },
+ "owner": {
+ "id": 52,
+ "type": "Organization",
+ "name": "身份卡手动阀",
+ "login": "ceshi1",
+ "image_url": "images/avatars/Organization/52?t=1618805056"
+ },
+ "id": 1,
+ "status": "canceled",
+ "created_at": "2021-04-25 18:06",
+ "time_ago": "16小时前"
+}
+
待办事项-项目申请
+待办事项-项目申请
+
+
+示例:
+
+curl -X GET http://localhost:3000/api/users/yystopf/applied_projects.json
+
await octokit.request('GET /api/users/:login/applied_projects.json')
+
HTTP 请求
+GET /api/users/:login/applied_projects.json
+请求字段说明:
+
+
+参数 |
+类型 |
+字段说明 |
+
+
+
+login |
+string |
+用户标识 |
+
+
+返回字段说明:
+
+
+参数 |
+类型 |
+字段说明 |
+
+
+
+id |
+int |
申请id |
@@ -4092,9 +4333,9 @@ Success — a happy kitten is an authenticated kitten!
curl -X POST http://localhost:3000/api/users/yystopf/applied_projects/2/accept.json
await octokit.request('GET /api/users/:login/applied_projects/:id/accept.json')
-
HTTP 请求
+HTTP 请求
GET /api/users/:login/applied_projects/:id/accept.json
-请求字段说明:
+请求字段说明:
参数 |
@@ -4113,7 +4354,7 @@ Success — a happy kitten is an authenticated kitten!
申请id |
-返回字段说明:
+返回字段说明:
参数 |
@@ -4251,9 +4492,9 @@ Success — a happy kitten is an authenticated kitten!
curl -X POST http://localhost:3000/api/users/yystopf/applied_projects/2/refuse.json
await octokit.request('GET /api/users/:login/applied_projects/:id/refuse.json')
-
HTTP 请求
+HTTP 请求
GET /api/users/:login/applied_projects/:id/refuse.json
-请求字段说明:
+请求字段说明:
参数 |
@@ -4272,7 +4513,7 @@ Success — a happy kitten is an authenticated kitten!
申请id |
-返回字段说明:
+返回字段说明:
参数 |
@@ -8715,10 +8956,10 @@ http://localhost:3000/api/yystopf/csfjkkj/contributors.json
示例:
curl -X GET \
-http://localhost:3000/api/yystopf/ceshi/webhooks.json
-
await octokit.request('GET /api/yystopf/ceshi/webhooks.json')
+http://localhost:3000/api/v1/yystopf/ceshi/webhooks.json
+
await octokit.request('GET /api/v1/yystopf/ceshi/webhooks.json')
HTTP 请求
-GET /api/:owner/:repo/webhooks.json
+GET /api/v1/:owner/:repo/webhooks.json
请求参数:
@@ -8773,11 +9014,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
是否激活 |
-type |
-string |
-类型 |
-
-
last_status |
string |
最后一次推送的状态 |
@@ -8800,7 +9036,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
"url": "https://oapi.dingtalk.com/robot/send?access_token=7e1e19d0eddb6a5e33c5c2c4e66f4c88f9437184b9ed2c2653194c6374c7d513",
"http_method": "",
"is_active": true,
- "type": "dingtalk",
"last_status": "succeed",
"create_time": "2021-07-12 10:50:07"
},
@@ -8809,7 +9044,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
"url": "http://localhost:3000",
"http_method": "GET",
"is_active": true,
- "type": "gitea",
"last_status": "succeed",
"create_time": "2021-07-26 10:03:45"
},
@@ -8818,7 +9052,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
"url": "http://localhost:10081",
"http_method": "POST",
"is_active": true,
- "type": "gitea",
"last_status": "waiting",
"create_time": "2021-07-26 16:56:53"
},
@@ -8827,7 +9060,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
"url": "http://localhost:3001",
"http_method": "POST",
"is_active": true,
- "type": "gitea",
"last_status": "fail",
"create_time": "2021-07-26 16:58:23"
}
@@ -8844,10 +9076,10 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
示例:
curl -X GET \
-http://localhost:3000/api/yystopf/ceshi/webhooks/3/edit.json
-
await octokit.request('GET /api/yystopf/ceshi/webhooks/3/edit.json')
+http://localhost:3000/api/v1/yystopf/ceshi/webhooks/3.json
+
await octokit.request('GET /api/v1/yystopf/ceshi/webhooks/3.json')
HTTP 请求
-GET /api/:owner/:repo/webhooks/:id/edit.json
+GET /api/v1/:owner/:repo/webhooks/:id.json
请求参数:
@@ -8914,21 +9146,11 @@ http://localhost:3000/api/yystopf/ceshi/webhooks/3/edit.json
string |
-is_active |
+active |
bool |
是否激活 |
-type |
-string |
-类型 |
-
-
-last_status |
-string |
-最后一次推送的状态, waiting 等待,fail 失败,succeed 成功 |
-
-
branch_filter |
string |
分支过滤 |
@@ -8939,7 +9161,7 @@ http://localhost:3000/api/yystopf/ceshi/webhooks/3/edit.json
触发条件 |
-create_time |
+create_at |
string |
创建时间 |
@@ -8960,34 +9182,10 @@ http://localhost:3000/api/yystopf/ceshi/webhooks/3/edit.json
分支或标签删除 |
-fork |
-仓库被fork |
-
-
push |
git仓库推送 |
-issue |
-疑修已打开、已关闭、已重新打开或编辑 |
-
-
-issue_assign |
-疑修被指派 |
-
-
-issue_label |
-疑修标签被更新或删除 |
-
-
-issue_milestone |
-疑修被收入里程碑 |
-
-
-issue_comment |
-疑修评论 |
-
-
pull_request |
合并请求 |
@@ -8996,18 +9194,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks/3/edit.json
合并请求被指派 |
-pull_request_label |
-合并请求被贴上标签 |
-
-
-pull_request_milestone |
-合并请求被记录于里程碑中 |
-
-
-pull_request_comment |
-合并请求被评论 |
-
-
pull_request_review_approved |
合并请求被批准 |
@@ -9015,22 +9201,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks/3/edit.json
pull_request_review_rejected |
合并请求被拒绝 |
-
-pull_request_review_comment |
-合并请求被提出审查意见 |
-
-
-pull_request_sync |
-合并请求被同步 |
-
-
-repository |
-创建或删除仓库 |
-
-
-release |
-版本发布 |
-
@@ -9041,31 +9211,15 @@ http://localhost:3000/api/yystopf/ceshi/webhooks/3/edit.json
"http_method": "GET",
"content_type": "form",
"url": "http://localhost:3000",
- "secret": "123456",
- "last_status": "succeed",
- "is_active": true,
- "type": "gitea",
- "create_time": "2021-07-26 10:03:45",
+ "active": true,
+ "create_at": "2021-07-26 10:03",
"branch_filter": "*",
"events": [
"create",
"delete",
- "fork",
- "issues",
- "issue_assign",
- "issue_label",
- "issue_milestone",
- "issue_comment",
"push",
"pull_request",
"pull_request_assign",
- "pull_request_label",
- "pull_request_milestone",
- "pull_request_comment",
- "pull_request_review",
- "pull_request_sync",
- "repository",
- "release"
]
}
@@ -9079,10 +9233,10 @@ http://localhost:3000/api/yystopf/ceshi/webhooks/3/edit.json
示例:
curl -X POST \
-http://localhost:3000/api/yystopf/ceshi/webhooks.json
-
await octokit.request('POST /api/yystopf/ceshi/webhooks.json')
+http://localhost:3000/api/v1/yystopf/ceshi/webhooks.json
+
await octokit.request('POST /api/v1/yystopf/ceshi/webhooks.json')
HTTP 请求
-POST /api/:owner/:repo/webhooks.json
+POST /api/v1/:owner/:repo/webhooks.json
请求参数:
@@ -9115,13 +9269,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
目标url |
-webhook.type |
-否 |
- |
-string |
-类型 |
-
-
webhook.http_method |
是 |
|
@@ -9182,34 +9329,10 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
分支或标签删除 |
-fork |
-仓库被fork |
-
-
push |
git仓库推送 |
-issue |
-疑修已打开、已关闭、已重新打开或编辑 |
-
-
-issue_assign |
-疑修被指派 |
-
-
-issue_label |
-疑修标签被更新或删除 |
-
-
-issue_milestone |
-疑修被收入里程碑 |
-
-
-issue_comment |
-疑修评论 |
-
-
pull_request |
合并请求 |
@@ -9218,18 +9341,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
合并请求被指派 |
-pull_request_label |
-合并请求被贴上标签 |
-
-
-pull_request_milestone |
-合并请求被记录于里程碑中 |
-
-
-pull_request_comment |
-合并请求被评论 |
-
-
pull_request_review_approved |
合并请求被批准 |
@@ -9237,22 +9348,6 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
pull_request_review_rejected |
合并请求被拒绝 |
-
-pull_request_review_comment |
-合并请求被提出审查意见 |
-
-
-pull_request_sync |
-合并请求被同步 |
-
-
-repository |
-创建或删除仓库 |
-
-
-release |
-版本发布 |
-
@@ -9316,15 +9411,22 @@ http://localhost:3000/api/yystopf/ceshi/webhooks.json
返回的JSON示例:
{
- "id": 18,
- "type": "gitea",
+ "id": 68,
"content_type": "json",
- "url": "http://localhost:10000",
+ "http_method": "GET",
+ "url": "http://127.0.0.1:3000",
"events": [
- "push"
+ "create",
+ "delete",
+ "push",
+ "pull_request",
+ "pull_request_assign",
+ "pull_request_review_approved",
+ "pull_request_review_rejected"
],
"active": true,
- "create_time": "2021-07-26 18:53:43"
+ "branch_filter": "*",
+ "created_at": "2022-06-23 15:52"
}