From 4c25b208910ba7d2ddfb245e42d19aa567a73566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Thu, 7 Jul 2022 12:39:10 +0200 Subject: [PATCH] Assign pull request author automatically We've been doing manually for too long ;). The reason why we're assigning the author is it makes it easy to filter pull requests by assignee on our kanban; it isn't so easy (actually, might be impossible) to filter by author. --- .github/workflows/auto-author-assign.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/auto-author-assign.yml diff --git a/.github/workflows/auto-author-assign.yml b/.github/workflows/auto-author-assign.yml new file mode 100644 index 000000000..fdfa2297c --- /dev/null +++ b/.github/workflows/auto-author-assign.yml @@ -0,0 +1,16 @@ +name: Assignment management + +on: + pull_request_target: + types: [opened, reopened] + +permissions: + pull-requests: write + +jobs: + assign-author: + name: Auto-assign pull request author + if: github.repository_owner == 'consul' + runs-on: ubuntu-latest + steps: + - uses: toshimaru/auto-author-assign@v1.4.0