Reranko05 commented on code in PR #51332:
URL: https://github.com/apache/arrow/pull/51332#discussion_r4011874164


##########
.github/workflows/pr_limit/check.js:
##########
@@ -30,14 +30,14 @@ const WRITE_PERMISSIONS = new Set(["write", "maintain", 
"admin"]);
  * @param {Object} context
  * @param {String} username
  */
-async function hasWriteAccess(github, context, username) {
+async function hasAccess(github, context, username) {
   try {
     const {data} = await github.rest.repos.getCollaboratorPermissionLevel({
       owner: context.repo.owner,
       repo: context.repo.repo,
       username: username
     });
-    return WRITE_PERMISSIONS.has(data.permission);
+    return HAS_ACCESS.has(data.permission);

Review Comment:
   Done



-- 
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