From d2aef61c5cbfe62972e3e9dc518f1fcf98111b37 Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Thu, 8 Jun 2023 15:55:56 +0300 Subject: [PATCH] Add auto author assignation workflow to this repo --- .../auto-author-assign-pull-request.yaml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 workflows/auto-author-assign-pull-request.yaml diff --git a/workflows/auto-author-assign-pull-request.yaml b/workflows/auto-author-assign-pull-request.yaml new file mode 100644 index 0000000..b820d45 --- /dev/null +++ b/workflows/auto-author-assign-pull-request.yaml @@ -0,0 +1,30 @@ +# Automatically assigns the authors to a PR. +# This workflow is set as a required workflow for other repositories in the organization. +# More about required workflows at https://docs.github.com/en/actions/using-workflows/required-workflows +# Full list of repos this workflow is required for can be found at https://github.com/organizations/2i2c-org/settings/actions, +# in the `Required Workflows` section at the bottom. +name: Auto Author Assign Pull Request + +on: + pull_request_target: + types: + - opened + - reopened + # Normally, it's enough for this workflow to be triggered only once, on PR opening/reopening. + # But because we use this workflow as a required workflow for other repositories + # in the 2i2c organization, it is **expected** to run successfully + # for each PR commit in those repositories. + # So we trigger it for each commit + - synchronize + +permissions: + pull-requests: write + +jobs: + assign-author: + runs-on: ubuntu-latest + steps: + # https://github.com/toshimaru/auto-author-assign + - name: Automatically assign PR author + id: assignation + uses: toshimaru/auto-author-assign@v1.6.2