mirror of
https://github.com/zhigang1992/now-deployment.git
synced 2026-04-25 04:45:13 +08:00
fix: wrong object key
This commit is contained in:
6
index.js
6
index.js
@@ -13,14 +13,14 @@ const zeitAPIClient = axios.create({
|
||||
},
|
||||
params: {
|
||||
teamId: process.env.ZEIT_TEAMID || undefined,
|
||||
"meta-commit": 'd6200a8bf4bd77d1d35e13e174dcc5f30bee85e5'
|
||||
"meta-commit": "d6200a8bf4bd77d1d35e13e174dcc5f30bee85e5"
|
||||
}
|
||||
});
|
||||
|
||||
// Run your GitHub Action!
|
||||
Toolkit.run(async tools => {
|
||||
const { data: comments } = await tools.github.issues.listComments({
|
||||
...repo.owner,
|
||||
...tools.context.repo,
|
||||
issue_number: tools.context.payload.pull_request.number
|
||||
});
|
||||
|
||||
@@ -44,7 +44,7 @@ Toolkit.run(async tools => {
|
||||
|
||||
if (zeitPreviewURLComment) {
|
||||
await tools.github.issues.updateComment({
|
||||
...repo.owner,
|
||||
...tools.context.repo,
|
||||
id: zeitPreviewURLComment.id,
|
||||
body: commentBody
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user