From 1dfd581868cc8ef51a9c191c3b02e09d696ccb88 Mon Sep 17 00:00:00 2001 From: NoPlagiarism <37241775+NoPlagiarism@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:59:14 +0500 Subject: [PATCH 1/3] ci: fix permissions + migrate to fresher action --- .github/workflows/pr_assignee.yml | 5 ++++- .github/workflows/pr_milestone.yml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_assignee.yml b/.github/workflows/pr_assignee.yml index af6daff02b7..fdc5ada61ca 100644 --- a/.github/workflows/pr_assignee.yml +++ b/.github/workflows/pr_assignee.yml @@ -9,11 +9,14 @@ on: branches-ignore: - l10n_dev +permissions: + pull-requests: write + jobs: automation: runs-on: ubuntu-latest steps: - name: Assign PR to creator - uses: thomaseizinger/assign-pr-creator-action@v1.0.0 + uses: toshimaru/auto-author-assign@v2.1.1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr_milestone.yml b/.github/workflows/pr_milestone.yml index b343a39cc8f..b17912be0b1 100644 --- a/.github/workflows/pr_milestone.yml +++ b/.github/workflows/pr_milestone.yml @@ -6,6 +6,9 @@ on: pull_request: types: [opened] +permissions: + pull-requests: write + jobs: automation: runs-on: ubuntu-latest From ac4dac98ae649c48b0f433bd81d8b9acc37887cb Mon Sep 17 00:00:00 2001 From: NoPlagiarism <37241775+NoPlagiarism@users.noreply.github.com> Date: Sun, 8 Dec 2024 16:09:49 +0500 Subject: [PATCH 2/3] ci: remove unnecessary comment --- .github/workflows/pr_assignee.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/pr_assignee.yml b/.github/workflows/pr_assignee.yml index fdc5ada61ca..a61285c20b3 100644 --- a/.github/workflows/pr_assignee.yml +++ b/.github/workflows/pr_assignee.yml @@ -1,8 +1,5 @@ name: Assign PR to creator -# Due to GitHub token limitation, only able to assign org members not authors from forks. -# https://github.com/thomaseizinger/assign-pr-creator-action/issues/3 - on: pull_request: types: [opened] From cfe773dc9546bdd315ed670789f948fc205fa19f Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Thu, 19 Dec 2024 20:28:59 +1100 Subject: [PATCH 3/3] Update .github/workflows/pr_assignee.yml --- .github/workflows/pr_assignee.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_assignee.yml b/.github/workflows/pr_assignee.yml index a61285c20b3..44b808885d2 100644 --- a/.github/workflows/pr_assignee.yml +++ b/.github/workflows/pr_assignee.yml @@ -1,7 +1,7 @@ name: Assign PR to creator on: - pull_request: + pull_request_target: types: [opened] branches-ignore: - l10n_dev