mirror of
https://github.com/peter-evans/create-or-update-comment.git
synced 2025-01-31 11:46:44 +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(
|
||||
ReactionsSet.map(async (item) => {
|
||||
await octokit.reactions.createForIssueComment({
|
||||
await octokit.rest.reactions.createForIssueComment({
|
||||
owner: repo[0],
|
||||
repo: repo[1],
|
||||
comment_id: comment_id,
|
||||
@ -104,7 +104,7 @@ async function run() {
|
||||
var commentBody = "";
|
||||
if (editMode == "append") {
|
||||
// Get the comment body
|
||||
const { data: comment } = await octokit.issues.getComment({
|
||||
const { data: comment } = await octokit.rest.issues.getComment({
|
||||
owner: repo[0],
|
||||
repo: repo[1],
|
||||
comment_id: inputs.commentId,
|
||||
@ -114,7 +114,7 @@ async function run() {
|
||||
|
||||
commentBody = commentBody + inputs.body;
|
||||
core.debug(`Comment body: ${commentBody}`);
|
||||
await octokit.issues.updateComment({
|
||||
await octokit.rest.issues.updateComment({
|
||||
owner: repo[0],
|
||||
repo: repo[1],
|
||||
comment_id: inputs.commentId,
|
||||
@ -134,7 +134,7 @@ async function run() {
|
||||
core.setFailed("Missing comment 'body'.");
|
||||
return;
|
||||
}
|
||||
const { data: comment } = await octokit.issues.createComment({
|
||||
const { data: comment } = await octokit.rest.issues.createComment({
|
||||
owner: repo[0],
|
||||
repo: repo[1],
|
||||
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",
|
||||
"dependencies": {
|
||||
"@actions/core": "1.2.7",
|
||||
"@actions/github": "4.0.0"
|
||||
"@actions/core": "1.3.0",
|
||||
"@actions/github": "5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vercel/ncc": "0.28.5",
|
||||
"eslint": "7.26.0",
|
||||
"jest": "26.6.3"
|
||||
"@vercel/ncc": "0.28.6",
|
||||
"eslint": "7.27.0",
|
||||
"jest": "27.0.1"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user