From 55665007264dd8cc04e23394622c10add7c55613 Mon Sep 17 00:00:00 2001 From: Dianjin Wang Date: Mon, 26 Jun 2023 11:55:26 +0800 Subject: [PATCH] Add new workflow for greetings Create one new GitHub workflow named greetings. When community users submit their first time issue or PR, the workflow runs and comments with customized greetings to encourage them. --- .github/workflows/greetings.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 00000000000..285ead28597 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -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: "Hey, @${{ github.actor }} welcome!🎊 Thanks for taking the time to point this out.🙌" + pr-message: "Hiiii, @${{ github.actor }} welcome!🎊 Thanks for taking the effort to make our project better! 🙌 Keep making such awesome contributions!"