We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d61f9ef commit 8c17728Copy full SHA for 8c17728
build/scripts/post-release.psm1
@@ -202,7 +202,7 @@ function PushPackagesPublishReleaseUnlockAndPostNoticeOnPrepareReleasePullReques
202
$tag = $match.Groups[1].Value
203
204
$commentUserPermission = gh api "repos/$gitRepository/collaborators/$commentUserName/permission" | ConvertFrom-Json
205
- if ($commentUserPermission.permission -ne 'maintain')
+ if ($commentUserPermission.user.permissions.maintain)
206
{
207
gh pr comment $pullRequestNumber `
208
--body "I'm sorry @$commentUserName but you don't have permission to push packages. Only maintainers can push to NuGet."
0 commit comments