From 0896eab07dadf6ef698471a0ac8ad554f1669cc0 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 23 Feb 2024 22:13:54 +0100 Subject: [PATCH] finalize-g4w-release: GitForWindowsHelper should be allowed implicitly The GitForWindowsHelper GitHub App is not a member of the Git for Windows organization per se, but it should be allowed to be the sender (i.e. the account that triggered the workflow run) that implicitly closes the `git-for-windows/git` PR corresponding to the just-released Git for Windows version. Signed-off-by: Johannes Schindelin --- GitForWindowsHelper/finalize-g4w-release.js | 1 + 1 file changed, 1 insertion(+) diff --git a/GitForWindowsHelper/finalize-g4w-release.js b/GitForWindowsHelper/finalize-g4w-release.js index 8b66d80..d07a26f 100644 --- a/GitForWindowsHelper/finalize-g4w-release.js +++ b/GitForWindowsHelper/finalize-g4w-release.js @@ -21,6 +21,7 @@ module.exports = async (context, req) => { })() const isAllowed = async (login) => { + if (login === 'gitforwindowshelper[bot]') return true const getCollaboratorPermissions = require('./get-collaborator-permissions') const token = await getToken() const permission = await getCollaboratorPermissions(context, token, owner, repo, login)