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

Rename models.ProtectedBranchRepoID/PRID to models.EnvRepoID/PRID and ensure EnvPusherEmail is set #12646

Merged

Conversation

zeripath
Copy link
Contributor

models.ProtectedBranchRepoID is poorly named as it has nothing to do with protected branch and is only the RepoID.

Also we only intermittently set the EnvPusherEmail - this ensures that this is set.

We should probably consider whether the EnvPusherEmail should be set all the time instead of only if KeepEmailPrivate is not set.

Signed-off-by: Andrew Thornton art27@cantab.net

…vPusherEmail is set

Signed-off-by: Andrew Thornton <art27@cantab.net>
@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2020

Codecov Report

Merging #12646 into master will decrease coverage by 0.02%.
The diff coverage is 30.43%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12646      +/-   ##
==========================================
- Coverage   43.46%   43.44%   -0.03%     
==========================================
  Files         645      645              
  Lines       71329    71345      +16     
==========================================
- Hits        31006    30995      -11     
- Misses      35312    35341      +29     
+ Partials     5011     5009       -2     
Impacted Files Coverage Δ
cmd/hook.go 0.00% <0.00%> (ø)
cmd/serv.go 2.85% <0.00%> (-0.03%) ⬇️
models/branches.go 43.01% <ø> (ø)
modules/private/serv.go 0.00% <ø> (ø)
routers/private/serv.go 29.30% <0.00%> (-1.35%) ⬇️
models/helper_environment.go 93.10% <100.00%> (+0.79%) ⬆️
routers/repo/http.go 42.96% <100.00%> (ø)
models/repo_mirror.go 2.38% <0.00%> (-11.91%) ⬇️
modules/cron/tasks_basic.go 87.35% <0.00%> (-3.45%) ⬇️
models/unit.go 46.57% <0.00%> (-2.74%) ⬇️
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17fbbe9...20443cc. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 29, 2020
@GiteaBot GiteaBot 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 29, 2020
@techknowlogick techknowlogick added the type/refactoring Existing code has been cleaned up. There should be no new functionality. label Aug 29, 2020
@techknowlogick techknowlogick added this to the 1.13.0 milestone Aug 29, 2020
@GiteaBot GiteaBot 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 29, 2020
@zeripath zeripath merged commit d257485 into go-gitea:master Aug 30, 2020
@zeripath zeripath deleted the rename-badly-named-environment-variables branch August 30, 2020 07:24
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 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.

5 participants