mastodon-sc / mastodon-git

A plugin for Mastodon that allows to collaborate on a project via Git.
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Mastodon Collaborative - Useful error message when pushing to a protected main branch #8

Open maarzt opened 11 months ago

maarzt commented 11 months ago

User story

A user creates a new git repository (on Gitlab) and shares Mastodon project using the mastodon git collaboration tools. He invites his colleagues to the git repo. A colleague clones the repo and pushes the first commit. Currently the push operation will fail because the master branch is protected by default. However the error message that the user gets has no indication of the problem.

Solution

The git command line tool produces a useful error message that indicates the the master branch is protected. Could we have a similar error message when pushing with mastodon?

TODOs