-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Do not allow commiting to protected branch from online editor #1502
Conversation
Could you please add a unit test for this too ? |
As there are no unittests for editor I dont think I have time to add them |
Unit tests are a great way to secure the time spent on fixing a bug. That time could be easily wasted if there's no test making sure nobody breaks again what you fixed. |
Yes, I know but as there are no integration tests yet, I don't see how I can implement them... |
See the integrations/ directory.
@typeless maybe you can add a README there to help people add tests ?
|
LGTM |
I will take a look |
Was not easy as there was no single authorized user integration test, so had to add quite many new stuff to integration tests. I did not want to introduce new dependency but in future it would probably be wise to replace my html parser to something like github.com/PuerkitoBio/goquery |
…add new file to protected branch
LGTM, thanks for the time you put into the tests ! |
Fix issue #1498