Merge pull request #83 from peter-evans/update-dependencies

Update dependencies
This commit is contained in:
Peter Evans 2021-05-27 13:27:11 +09:00 committed by GitHub
commit 87510f47bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 843 additions and 2567 deletions

View File

@ -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,

3432
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
} }
} }