From a933952af32db79ee0e645e23a0f6194c22f04ed Mon Sep 17 00:00:00 2001 From: K <51281148+K-dash@users.noreply.github.com> Date: Sun, 18 Aug 2024 23:35:10 +0900 Subject: [PATCH] feat(workflows): add greeting workflow for new issues and PRs. --- .github/workflows/greeting.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/greeting.yml diff --git a/.github/workflows/greeting.yml b/.github/workflows/greeting.yml new file mode 100644 index 0000000..bcd3088 --- /dev/null +++ b/.github/workflows/greeting.yml @@ -0,0 +1,23 @@ +name: Greetings + +on: + pull_request_target: + types: + - opened + issues: + types: + - opened + +jobs: + greeting: + runs-on: ubuntu-latest + if: ${{ github.actor != 'all-contributors[bot]' && github.actor != 'ryansurf' }} + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: "👋 Hi! Thanks for opening your first issue! 🎉 We're excited to see your contribution. If you find this project interesting or helpful, we'd be thrilled if you could give it a star ⭐ Your support means a lot to us! 😊" + pr-message: "👋 Hi! Thanks for submitting your first pull request! 🎉 We really appreciate your effort to improve this project. If you're enjoying your experience here and find the project interesting, we'd be over the moon if you could give it a star ⭐ It helps us grow and motivates us to keep improving! 🚀"