Skip to content

Commit

Permalink
v0.2 build ready
Browse files Browse the repository at this point in the history
  • Loading branch information
phulsechinmay committed May 28, 2020
1 parent d766993 commit 0131610
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -760,9 +760,7 @@ const github = __webpack_require__(469);

async function checkForExisiingComment(octokit, repo, owner, issue_number, commentIdentifier) {
const existingComments = await octokit.issues.listComments({
repo,
owner,
issue_number
repo, owner, issue_number
});

let existingCommentId = undefined;
Expand Down Expand Up @@ -802,15 +800,13 @@ async function run() {
let comment = undefined;
if (existingCommentId) {
comment = await octokit.issues.updateComment({
repo,
owner,
repo, owner,
comment_id: existingCommentId,
body: commentBody
})
} else {
comment = await octokit.issues.createComment({
repo,
owner,
repo, owner,
issue_number: pr_number,
body: commentBody
});
Expand Down
10 changes: 3 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ const github = require("@actions/github");

async function checkForExisiingComment(octokit, repo, owner, issue_number, commentIdentifier) {
const existingComments = await octokit.issues.listComments({
repo,
owner,
issue_number
repo, owner, issue_number
});

let existingCommentId = undefined;
Expand Down Expand Up @@ -45,15 +43,13 @@ async function run() {
let comment = undefined;
if (existingCommentId) {
comment = await octokit.issues.updateComment({
repo,
owner,
repo, owner,
comment_id: existingCommentId,
body: commentBody
})
} else {
comment = await octokit.issues.createComment({
repo,
owner,
repo, owner,
issue_number: pr_number,
body: commentBody
});
Expand Down

0 comments on commit 0131610

Please sign in to comment.