Skip to content

Commit 5755e22

Browse files
committed
logs
1 parent ea746ca commit 5755e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function run() {
6060
const context = github.context;
6161
console.log(JSON.stringify(context.payload))
6262
var pullRequest = context.payload.pull_request
63-
if(pullRequest.base.ref == 'master') {
63+
if(pullRequest.merged == true && pullRequest.base.ref == 'master') {
6464
const pullRequestNumber = pullRequest.number
6565
const octokit = new github.GitHub(process.env.GITHUB_TOKEN)
6666
octokit.issues.listComments({

0 commit comments

Comments
 (0)