We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9eb2d1 commit 6c50b33Copy full SHA for 6c50b33
index.js
@@ -27,8 +27,8 @@ async function run () {
27
await nowDeploy()
28
if (context.issue.number) {
29
core.info('this is related issue or pull_request ')
30
- await createComment()
31
- } else if (context.payload.push) {
+ await createCommentOnPullRequest()
+ } else if (context.eventName === 'push') {
32
core.info('this is push event')
33
await createCommentOnCommit()
34
}
@@ -164,7 +164,7 @@ async function createCommentOnCommit () {
164
core.setOutput('preview-url', `https://${deploymentUrl}`)
165
166
167
-async function createComment () {
+async function createCommentOnPullRequest () {
168
169
const {
170
data: comments,
0 commit comments