You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2024/12/26 21:13:51 UTC

(maven-gh-actions-shared) 01/01: PR Automation - use pull_request_target in docs

This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch pr-automation-target-doc
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git

commit 1ab2ff1e5c49247cc6dc0d7a560e1ed75603013a
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Thu Dec 26 22:13:36 2024 +0100

    PR Automation - use pull_request_target in docs
---
 README.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index c9932b9..83a68ca 100644
--- a/README.md
+++ b/README.md
@@ -174,14 +174,11 @@ with content:
 
 name: PR Automation
 on:
-  pull_request:
+  pull_request_target:
     types:
       - closed
       - unlabeled
       - demilestoned
-  pull_request_review:
-    types:
-      - submitted
 
 jobs:
   pr-automation:
@@ -190,6 +187,9 @@ jobs:
 
 ```
 
+We need a use `pull_request_target` event because we need `GITHUB_TOKEN` with write permission
+to update labels, milestones of PR from forked repositories.
+
 After approval or merged:
 - default label - `maintenance` will be added
 - current milestone will be set