Au-Miner commented on code in PR #28182:
URL: https://github.com/apache/flink/pull/28182#discussion_r3264734284


##########
.github/workflows/community-review.yml:
##########
@@ -24,10 +24,13 @@ on:
   schedule:
     - cron: '00 00,08,16 * * *'
 
-# Same permission as stale Github action
+# The community review script needs write permissions to label PRs.
 permissions:
+  # Required to add/remove labels (indirectly via issues API for PRs).
   issues: write
+  # Required to add/remove labels on PRs via the GitHub API.
   pull-requests: write
+  # Required for the script to manage its execution state.

Review Comment:
   Could you explain why it is necessary to manage the execution state



##########
.github/workflows/community-review.yml:
##########
@@ -24,10 +24,13 @@ on:
   schedule:
     - cron: '00 00,08,16 * * *'
 
-# Same permission as stale Github action
+# The community review script needs write permissions to label PRs.
 permissions:
+  # Required to add/remove labels (indirectly via issues API for PRs).
   issues: write
+  # Required to add/remove labels on PRs via the GitHub API.
   pull-requests: write
+  # Required for the script to manage its execution state.
   actions: write

Review Comment:
   Need double check if community-review.sh requires action: write permission. 
From my understanding, only read-only PR query and issue API permissions are 
needed



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to