mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-02-07 18:40:11 +08:00
Merge pull request #83 from peter-evans/update-dependencies
Update dependencies
This commit is contained in:
commit
87510f47bf
8
index.js
8
index.js
@ -38,7 +38,7 @@ async function addReactions(octokit, repo, comment_id, reactions) {
|
|||||||
|
|
||||||
let results = await Promise.allSettled(
|
let results = await Promise.allSettled(
|
||||||
ReactionsSet.map(async (item) => {
|
ReactionsSet.map(async (item) => {
|
||||||
await octokit.reactions.createForIssueComment({
|
await octokit.rest.reactions.createForIssueComment({
|
||||||
owner: repo[0],
|
owner: repo[0],
|
||||||
repo: repo[1],
|
repo: repo[1],
|
||||||
comment_id: comment_id,
|
comment_id: comment_id,
|
||||||
@ -104,7 +104,7 @@ async function run() {
|
|||||||
var commentBody = "";
|
var commentBody = "";
|
||||||
if (editMode == "append") {
|
if (editMode == "append") {
|
||||||
// Get the comment body
|
// Get the comment body
|
||||||
const { data: comment } = await octokit.issues.getComment({
|
const { data: comment } = await octokit.rest.issues.getComment({
|
||||||
owner: repo[0],
|
owner: repo[0],
|
||||||
repo: repo[1],
|
repo: repo[1],
|
||||||
comment_id: inputs.commentId,
|
comment_id: inputs.commentId,
|
||||||
@ -114,7 +114,7 @@ async function run() {
|
|||||||
|
|
||||||
commentBody = commentBody + inputs.body;
|
commentBody = commentBody + inputs.body;
|
||||||
core.debug(`Comment body: ${commentBody}`);
|
core.debug(`Comment body: ${commentBody}`);
|
||||||
await octokit.issues.updateComment({
|
await octokit.rest.issues.updateComment({
|
||||||
owner: repo[0],
|
owner: repo[0],
|
||||||
repo: repo[1],
|
repo: repo[1],
|
||||||
comment_id: inputs.commentId,
|
comment_id: inputs.commentId,
|
||||||
@ -134,7 +134,7 @@ async function run() {
|
|||||||
core.setFailed("Missing comment 'body'.");
|
core.setFailed("Missing comment 'body'.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const { data: comment } = await octokit.issues.createComment({
|
const { data: comment } = await octokit.rest.issues.createComment({
|
||||||
owner: repo[0],
|
owner: repo[0],
|
||||||
repo: repo[1],
|
repo: repo[1],
|
||||||
issue_number: inputs.issueNumber,
|
issue_number: inputs.issueNumber,
|
||||||
|
3392
package-lock.json
generated
3392
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@ -20,12 +20,12 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/peter-evans/create-or-update-comment#readme",
|
"homepage": "https://github.com/peter-evans/create-or-update-comment#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.2.7",
|
"@actions/core": "1.3.0",
|
||||||
"@actions/github": "4.0.0"
|
"@actions/github": "5.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vercel/ncc": "0.28.5",
|
"@vercel/ncc": "0.28.6",
|
||||||
"eslint": "7.26.0",
|
"eslint": "7.27.0",
|
||||||
"jest": "26.6.3"
|
"jest": "27.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user