You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Better experience around protected branches and pr permissions #4482
We should provide a friendlier experience when collaborating with others on a single repository
The reason why this failed is in the error message, but it's not presented in a user friendly way. In the case of ☝️, the publish button should have been disabled. We can get these permissions from the repositories endpoint, so it should be possible to prevent this state from occuring.
tl;dr
Desktop should preempt this
It's possible to push to a protected branch
Scary error messages
Interestingly, this repo requires signed commits and I did not sign the commits made by my evil-handle, yet that was not the reason why the push failed. Shouldn't unsigned commits take precedence?
Reproduction steps
Assume steps not listed explicitly are things not to do (where it makes sense 🤷♂️)
Update git information from iAmWillShepherd and [email protected] ➡️: iAmNotWillShepherd and [email protected] (remember to change back)
Noticed that git information didn't automatically update as I was documenting ☝️ (is this a bug?)
Clone the repo
Make some commits to master
Push
Separate maintainers problem
This is a related issue
Maintainers should be able to push to their contributors' PRs since we can get this info from the maintainer_can_modify property returned from the pull requests endpoint. If we store this data, desktop could allow this.
Maintainers should be able to push to their contributors' PRs since we can get this info from the maintainer_can_modify property returned from the pull requests endpoint. If we store this data, desktop could allow this.
I think Desktop also needs to track the permissions hash for the repository from the API along with this field. From the docs, it's constrained to everyone with push permissions:
For greater collaboration, you can allow commits on branches you've created from forks. Permission to commit to your forked branches is limited to those with push access to the upstream repository of the fork.
Activity
shiftkey commentedon Apr 20, 2018
I think Desktop also needs to track the
permissionshash for the repository from the API along with this field. From the docs, it's constrained to everyone withpushpermissions:niik commentedon Aug 28, 2020
This has largely been covered by #8889 and #7826. Going to consider it closed