Skip to content

Commit 7dc3f8b

Browse files
committed
handlePush: fix isAllowed() invocation
It was missing the information _which_ repository the sender needs to have permission to write to. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 5409cb5 commit 7dc3f8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GitForWindowsHelper/cascading-runs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const getToken = (() => {
1414
const isAllowed = async (context, owner, repo, login) => {
1515
if (login === 'gitforwindowshelper[bot]') return true
1616
const getCollaboratorPermissions = require('./get-collaborator-permissions')
17-
const token = await getToken()
17+
const token = await getToken(context, owner, repo)
1818
const permission = await getCollaboratorPermissions(context, token, owner, repo, login)
1919
return ['ADMIN', 'MAINTAIN', 'WRITE'].includes(permission.toString())
2020
}

0 commit comments

Comments
 (0)