新增:批量提交文件支持参数选填

This commit is contained in:
2022-07-28 14:25:33 +08:00
parent f417e42864
commit 35c6cb98db
4 changed files with 38 additions and 34 deletions

View File

@@ -1126,21 +1126,21 @@ await octokit.request('POST /api/v1/yystopf/ceshi/contents/batch.json')
### 请求参数:
参数 | 必选 | 默认 | 类型 | 字段说明
--------- | ------- | ------- | -------- | ----------
|owner |是| |string |用户登录名 |
|repo |是| |string |项目标识identifier |
|files.action_type |是| |string|操作类型 create: 创建 update: 更新 delete: 删除|
|files.content |是| |string|文件内容|
|files.encoding |是| |string|文件编码方式 text 文本 base64 加密|
|files.file_path |是| |string|文件路径|
|author_email || |string|作者邮箱|
|author_name || |string|作者名称|
|author_timeunix || |int|编码时间,精确到秒|
|committer_email || |string|提交者邮箱|
|committer_name || |string|提交者名称|
|committer_timeunix|| |int|提交时间戳,精确到秒|
|branch |是| |string|提交分支|
|new_branch |否| |string|如果需要创建新分支,这个需要填|
|message |是| |string|提交信息|
|owner |是| |string |用户登录名 |
|repo |是| |string |项目标识identifier |
|files.action_type |是| |string|操作类型 create: 创建 update: 更新 delete: 删除|
|files.content |是| |string|文件内容|
|files.encoding |是| |string|文件编码方式 text 文本 base64 加密|
|files.file_path |是| |string|文件路径|
|author_email || 当前用户邮箱 |string|作者邮箱,不填时需要与作者名称同时为空|
|author_name || 当前用户标识 |string|作者名称,不填时需要与作者邮箱同时为空|
|author_timeunix || 当前时间戳 |int|编码时间,精确到秒|
|committer_email || 当前用户邮箱 |string|提交者邮箱,不填时需要与提交者名称同时为空|
|committer_name || 当前用户标识 |string|提交者名称,不填时需要与提交者邮箱同时为空|
|committer_timeunix|| 当前时间戳 |int|提交时间戳,精确到秒|
|branch |是| |string|提交分支|
|new_branch |否| |string|如果需要创建新分支,这个需要填|
|message |是| |string|提交信息|
> 请求的JSON示例: