-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publishing changes fails to respect the permissions of GitHub team members #3904
Comments
Hi @kylekirkby, can you share a screen shot of the branch protection rules? |
Closing this issue. Please provide more information on the branch protection rules configured if still relevant |
We're having this issue too. Netlify CMS is pointing at
Currently we're forcing non-devs to go to GitHub just so they can approve the PR and publish the changes. Which sometimes also makes people merge the changes from GitHub instead of the CMS. A solution for this could be: @erezrokah Can we open this one? |
Hi @pmpinto your feature request is a bit different than the issue. It seems you're asking for a new feature to be able to request a PR review from the CMS. However, I think you should also be able to use code owners to automatically request a review which should be an improvement. If you'd like to automate this one step further, you should be able to use https://github.com/AndrewMusgrave/automatic-pull-request-review to automatically approve PRs (or any similar approach). If those suggestions don't work for you, I recommend opening a new feature request - I believe it will request some UI changes (blocking publish until the PR is approved) |
Hey @erezrokah! Thanks for taking a look at this.
Sorry if I didn't make that clear. The issue being: users with write permissions on the target branch are unable to publish a change (on a protected branch) from the CMS directly. Because it will complain it needs at least 1 review (in my case). A possible solution: I mean:
Step 6 is what I'm suggesting as a solution for this issue. |
Describe the bug
We've recently moved our marketing team members to a GitHub team with write permissions. The base branch requires a review to be merged. If an approving review is made and the marketing team member goes to publish the post. They are hit with a GrapQL error complaining about not having the required permissions; even though they can merge on GitHub directly (this would cause the cms/branch exists error though when editing the same page again).
To Reproduce
Expected behavior
NetlifyCMS to respect the GitHub team member permissions and allow the end-user to publish their changes.
Screenshots
Applicable Versions:
CMS configuration
https://github.com/Linaro/website/blob/develop/admin/config.yml
The text was updated successfully, but these errors were encountered: