Skip to content
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

Merged
merged 2 commits into from
May 2, 2017

Conversation

lafriks
Copy link
Member

@lafriks lafriks commented Apr 16, 2017

Fix issue #1498

@andreynering andreynering modified the milestone: 1.2.0 Apr 16, 2017
@strk
Copy link
Member

strk commented Apr 17, 2017

Could you please add a unit test for this too ?

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 17, 2017
@lafriks
Copy link
Member Author

lafriks commented Apr 17, 2017

As there are no unittests for editor I dont think I have time to add them

@strk
Copy link
Member

strk commented Apr 17, 2017

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.

@lafriks
Copy link
Member Author

lafriks commented Apr 17, 2017

Yes, I know but as there are no integration tests yet, I don't see how I can implement them...

@strk
Copy link
Member

strk commented Apr 18, 2017 via email

@typeless
Copy link
Contributor

@strk /integrations is going to be replaced by #1290 soon. Please take a look.

@lunny
Copy link
Member

lunny commented Apr 20, 2017

LGTM

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Apr 20, 2017
@strk
Copy link
Member

strk commented Apr 30, 2017

#1290 is now merged. @lafriks do you want to give it a try?

@lafriks
Copy link
Member Author

lafriks commented Apr 30, 2017

I will take a look

@lafriks
Copy link
Member Author

lafriks commented May 1, 2017

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

@strk
Copy link
Member

strk commented May 1, 2017

LGTM, thanks for the time you put into the tests !

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels May 1, 2017
@lunny lunny merged commit 0144817 into go-gitea:master May 2, 2017
@lafriks lafriks deleted the issue/1498 branch May 7, 2017 16:44
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants