diff --git a/.github/workflows/greetings.yaml b/.github/workflows/greetings.yaml new file mode 100644 index 0000000..704db0e --- /dev/null +++ b/.github/workflows/greetings.yaml @@ -0,0 +1,16 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-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." + pr-message: "Welcome to Our repository.🎊 Thank you so much for taking the time to point this out." diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml deleted file mode 100644 index e935e02..0000000 --- a/.github/workflows/greetings.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Greetings Workflow - -on: - pull_request: - types: [opened] - issues: - types: [opened] - -jobs: - greeting: - runs-on: ubuntu-latest - steps: - - name: Send Welcome Message - uses: actions/first-interaction@v1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - issue-message: | - 👋 Thank you for raising an issue! We appreciate your effort in helping us improve. - Our team will review it shortly. Stay tuned for updates! - pr-message: | - 🎉 Thank you for your contribution! Your pull request has been submitted successfully. - A maintainer will review it as soon as possible. We appreciate your support in improving this project!