From ba7288b72b4a02772de4ab9ef4eff5f41df48aa1 Mon Sep 17 00:00:00 2001 From: Samyak Aditya <91079592+samyak-aditya@users.noreply.github.com> Date: Wed, 2 Oct 2024 19:58:44 +0530 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..549436e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,22 @@ +name: Greetings + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + greet: + runs-on: ubuntu-latest + steps: + - name: Greet the user + uses: actions/github-script@v6 + with: + script: | + const issue = context.issue; + const message = "Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible."; + await github.issues.createComment({ + ...issue, + body: message + });