From 3977a65a7657eb5770f4fec1d6b614d66cd1f4f5 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 3 Nov 2024 21:01:54 +0200 Subject: [PATCH] Create auto-assign.yml --- .github/workflows/auto-assign.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto-assign.yml diff --git a/.github/workflows/auto-assign.yml b/.github/workflows/auto-assign.yml new file mode 100644 index 00000000..1129bd90 --- /dev/null +++ b/.github/workflows/auto-assign.yml @@ -0,0 +1,26 @@ +name: Auto Assign Author + +on: + issues: + types: [opened] + pull_request: + types: [opened] + +jobs: + auto-assign: + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Assign author to issue + if: github.event_name == 'issues' + uses: actions-ecosystem/action-assign@v2 + with: + assignees: ${{ github.actor }} + + - name: Assign author to pull request + if: github.event_name == 'pull_request' + uses: actions-ecosystem/action-assign@v2 + with: + assignees: ${{ github.actor }}