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

EnableUnit() -> UnitEnabled() #2242

Merged
merged 1 commit into from
Aug 2, 2017
Merged

Conversation

ethantkoenig
Copy link
Member

@ethantkoenig ethantkoenig commented Aug 1, 2017

Renames the Repository.EnableUnit(..) and Team.EnableUnit(..) methods (which check if a unit is enabled) to UnitEnabled(..). The original names seems misleading, since EnableUnit(..) sounds like a method that enables a unit, not one that checks if a unit is enabled.

Calls the method in more places to remove boilerplate.

@jonasfranz
Copy link
Member

You forgot to change the function name in templates.

See https://github.com/go-gitea/gitea/search?utf8=✓&q=EnableUnit&type=

@bkcsoft bkcsoft added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 1, 2017
@lunny lunny added this to the 1.2.0 milestone Aug 2, 2017
@lunny lunny added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Aug 2, 2017
@lunny
Copy link
Member

lunny commented Aug 2, 2017

LGTM

@bkcsoft bkcsoft 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 Aug 2, 2017
@lafriks
Copy link
Member

lafriks commented Aug 2, 2017

LGTM

@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 Aug 2, 2017
@lafriks lafriks merged commit f29458b into go-gitea:master Aug 2, 2017
@ethantkoenig ethantkoenig deleted the rename/unit branch August 13, 2017 23:01
@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/refactoring Existing code has been cleaned up. There should be no new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants