From fe762f33cc7fbd7e386d693c3f99fcb15e24fd7c Mon Sep 17 00:00:00 2001 From: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com> Date: Fri, 11 Mar 2022 20:06:49 +0800 Subject: [PATCH] ci(project): introducing welcome bot (#6535) - New workflow to make bot greets to the user contributing to this repo --- .github/workflows/welcome.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/welcome.yml diff --git a/.github/workflows/welcome.yml b/.github/workflows/welcome.yml new file mode 100644 index 0000000000..1e979f5a0d --- /dev/null +++ b/.github/workflows/welcome.yml @@ -0,0 +1,25 @@ +name: PR Open Greeting + +on: + pull_request: + types: [opened] + +jobs: + pr-open-greeting: + runs-on: ubuntu-latest + steps: + - uses: actions-cool/check-user-permission@v2 + id: isTeamMember + with: + require: 'write' + - uses: actions-awesome/pr-helper@1.0.15 + if: steps.isTeamMember.outputs.require-result == 'false' + with: + actions: 'add-assignees, add-reviewers, greeting, add-labels' + assignees: 'element-plus/backers' + reviewers: 'element-plus/backers' + labels: 'Contribution::Community' + token: ${{ github.token }} + pr-number: ${{ github.event.pull_request.number }} + greeting-message: 'Hello %user%, thank you for contributing to %repo%, please see our [guideline](%guideline%) to see how to make contribution' + greeting-guideline-address: 'https://github.com/element-plus/element-plus/blob/dev/CONTRIBUTING.md'