From 05797c98a87d1d3a3b4c99e1b3befd4b6253cc59 Mon Sep 17 00:00:00 2001 From: PunGrumpy <108584943+PunGrumpy@users.noreply.github.com> Date: Fri, 17 Nov 2023 13:28:36 +0700 Subject: [PATCH] ci(github-actions): add automations --- .github/workflows/automation.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/automation.yml diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml new file mode 100644 index 00000000..b8bbcf18 --- /dev/null +++ b/.github/workflows/automation.yml @@ -0,0 +1,33 @@ +name: 🤖 Automation +on: + pull_request: + branches: [main] + pull_request_target: + branches: [main] + issues: + types: [opened, edited, milestoned, demilestoned, closed, reopened] +jobs: + label: + if: ${{ github.event_name == 'pull_request' }} + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - name: 🔖 Labeler + uses: actions/labeler@v4 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + greet: + if: ${{ github.event_name == 'issues' || github.event_name == 'pull_request' || github.event_name == 'pull_request_target' }} + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - name: 🫂 Greeter + uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: '## 🙏 Thanks for opening this issue! We will look into it ASAP.' + pr-message: '## 🙏 Thanks for opening this PR! We will look into it ASAP.'