azu / azu/git-commit-push-via-github-api

use of deprecated github api warning

未關閉
#13 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
Type: Maintenance
主要語言
TypeScript
星號
62
分支
18
PR 合併指標
30 天內沒有已合併 PR

描述

I am getting this warning please fix it
```
[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead
Deprecation: [@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.
at authenticate (D:\node_project\node_modules\@octokit\rest\plugins\authentication-deprecated\authenticate.js:11:5)
at exports.gitCommitPush (D:\node_project\node_modules\git-commit-push-via-github-api\lib\git-commit-push-via-github-api.js:126:16)
at D:\node_project\routes\notices\notification.js:199:17
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
name: 'Deprecation'
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Start by inspecting lib/git-commit-push-via-github-api.js at the stack-trace location around line 126, then trace the Octokit setup used by gitCommitPush. Confirm the supported @octokit/rest API and verify that the reported deprecation warnings no longer appear when the GitHub commit-and-push flow runs.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
github, node.js, typescript
領域
api
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。