Skip to content

Commit 8c17728

Browse files
authored
[infra] Fix role check during release process part2 (#6555)
1 parent d61f9ef commit 8c17728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/scripts/post-release.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function PushPackagesPublishReleaseUnlockAndPostNoticeOnPrepareReleasePullReques
202202
$tag = $match.Groups[1].Value
203203

204204
$commentUserPermission = gh api "repos/$gitRepository/collaborators/$commentUserName/permission" | ConvertFrom-Json
205-
if ($commentUserPermission.permission -ne 'maintain')
205+
if ($commentUserPermission.user.permissions.maintain)
206206
{
207207
gh pr comment $pullRequestNumber `
208208
--body "I'm sorry @$commentUserName but you don't have permission to push packages. Only maintainers can push to NuGet."

0 commit comments

Comments
 (0)