github-tools / github-tools/github
writeFile function fails when response status header is 304 unmodified
未关闭
- 主要语言
- JavaScript
- 星标
- 3.8k
- 派生
- 809
- PR 合并指标
- 30 天内没有已合并 PR
描述
The response object in the getSha returned promise fails on here `commit.sha = response.data.sha;`
The response.data is null, the status header of the response object is '304 Unmodified'
The writeFile function fails before the PUT requests are created.
https://github.com/github-tools/github/blob/24223f7a51ba935f1c86ffd552dac20e8f3e359d/lib/Repository.js#L732
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 lib/Repository.js 中链接的 writeFile 代码开始,跟踪 getSha promise 以及 commit.sha = response.data.sha 附近的响应处理。确认 304 响应的预期行为,并验证 writeFile 不再在创建其 PUT 请求之前失败。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100