From 9402a2f85ffcac7b08051752dbf3762d7d8787d7 Mon Sep 17 00:00:00 2001 From: PeterJitta Date: Tue, 12 Dec 2023 13:20:14 +0700 Subject: [PATCH 1/4] Update test-comment.yml --- .github/workflows/test-comment.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-comment.yml b/.github/workflows/test-comment.yml index 3c0f9de..37055da 100644 --- a/.github/workflows/test-comment.yml +++ b/.github/workflows/test-comment.yml @@ -2,19 +2,22 @@ name: comment preview run-name: ${{ github.actor }} is comment preview on: - push: - + # Trigger the workflow on push or pull request + pull_request: + branches: + - main + - develop + jobs: comment: - runs-on: macos-latest + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/github-script@v7 + - uses: actions/github-script@v6 with: script: | - github.issues.createComment({ + github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'Just comment' - }); \ No newline at end of file + body: '👋 Thanks for reporting!' + }) \ No newline at end of file From 89654610766a2acc4c21564b1605802c93f93132 Mon Sep 17 00:00:00 2001 From: PeterJitta Date: Tue, 12 Dec 2023 13:24:05 +0700 Subject: [PATCH 2/4] Update test-comment.yml --- .github/workflows/test-comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-comment.yml b/.github/workflows/test-comment.yml index 37055da..bab3d65 100644 --- a/.github/workflows/test-comment.yml +++ b/.github/workflows/test-comment.yml @@ -3,7 +3,7 @@ run-name: ${{ github.actor }} is comment preview on: # Trigger the workflow on push or pull request - pull_request: + push: branches: - main - develop From 1ef366537617d1e2b8634a6ca4e7f17cfe5c32bb Mon Sep 17 00:00:00 2001 From: PeterJitta Date: Tue, 12 Dec 2023 13:30:39 +0700 Subject: [PATCH 3/4] Update test-comment.yml --- .github/workflows/test-comment.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-comment.yml b/.github/workflows/test-comment.yml index bab3d65..bf89cbf 100644 --- a/.github/workflows/test-comment.yml +++ b/.github/workflows/test-comment.yml @@ -3,10 +3,11 @@ run-name: ${{ github.actor }} is comment preview on: # Trigger the workflow on push or pull request - push: + pull_request: branches: - main - develop + - "feature/**" jobs: comment: From fc14365cb098ddedabe6f9cfeeeec6346840f40c Mon Sep 17 00:00:00 2001 From: PeterJitta Date: Tue, 12 Dec 2023 13:32:12 +0700 Subject: [PATCH 4/4] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b37ccb3..f549fd8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # github-action - Demo github action +Demo github action + +Hello \ No newline at end of file