From 5e7b308e0a21dd1528199d32257f617b1a48904b Mon Sep 17 00:00:00 2001 From: Mahesh <90019194+MaheshKariappa@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:12:07 +0530 Subject: [PATCH 1/2] Create main.yml --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c049841 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,28 @@ +name: Comment on Issue + +on: + issues: + types: + - opened + +jobs: + comment: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Comment on issue + uses: actions/github-script@v7 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const commentText = 'Hello! Thank you for opening this issue. We will look into it shortly.'; + const response = await github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: commentText, + }); + console.log(response); From 8f3706c68e84ac6935ce2e09b9383bb690aae986 Mon Sep 17 00:00:00 2001 From: Mahesh <90019194+MaheshKariappa@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:13:09 +0530 Subject: [PATCH 2/2] Update pom.xml --- pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pom.xml b/pom.xml index 466e21e..0b7687c 100644 --- a/pom.xml +++ b/pom.xml @@ -45,3 +45,6 @@ + + +#######