From 07e75988062e5c7de820b038db622b35f572a4d6 Mon Sep 17 00:00:00 2001 From: Alija Bobija Date: Sun, 28 Apr 2024 19:11:15 +0200 Subject: [PATCH 1/3] Add workflow for auto-assigning author to the PR --- .github/workflows/auto-assign-author.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/auto-assign-author.yaml diff --git a/.github/workflows/auto-assign-author.yaml b/.github/workflows/auto-assign-author.yaml new file mode 100644 index 0000000..6fad42c --- /dev/null +++ b/.github/workflows/auto-assign-author.yaml @@ -0,0 +1,14 @@ +name: Auto assign auhtor to PR + +on: + pull_request_target: + types: [ opened, reopened ] + +permissions: + pull-requests: write + +jobs: + assign-author: + runs-on: ubuntu-latest + steps: + - uses: toshimaru/auto-author-assign@v2.0.0 From ed500314f53961db3e132f0adec719857b28f012 Mon Sep 17 00:00:00 2001 From: Alija Bobija Date: Sun, 28 Apr 2024 19:13:07 +0200 Subject: [PATCH 2/3] Fix trigger name --- .github/workflows/auto-assign-author.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-assign-author.yaml b/.github/workflows/auto-assign-author.yaml index 6fad42c..474b005 100644 --- a/.github/workflows/auto-assign-author.yaml +++ b/.github/workflows/auto-assign-author.yaml @@ -1,7 +1,7 @@ name: Auto assign auhtor to PR on: - pull_request_target: + pull_request: types: [ opened, reopened ] permissions: From d537ed61d11bb6c773b8ba1529c4b1385cf013dc Mon Sep 17 00:00:00 2001 From: Alija Bobija Date: Sun, 28 Apr 2024 19:23:05 +0200 Subject: [PATCH 3/3] Fix typo and go back to _target trigger --- .github/workflows/auto-assign-author.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-assign-author.yaml b/.github/workflows/auto-assign-author.yaml index 474b005..d10f5db 100644 --- a/.github/workflows/auto-assign-author.yaml +++ b/.github/workflows/auto-assign-author.yaml @@ -1,8 +1,8 @@ -name: Auto assign auhtor to PR +name: Assign author to PR on: - pull_request: - types: [ opened, reopened ] + pull_request_target: + types: [opened, reopened] permissions: pull-requests: write