Skip to content

Commit

Permalink
finalize-g4w-release: GitForWindowsHelper should be allowed implicitly
Browse files Browse the repository at this point in the history
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 <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Feb 23, 2024
1 parent eb71f5c commit 0896eab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GitForWindowsHelper/finalize-g4w-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0896eab

Please sign in to comment.