Skip to content

Conversation

@davidsvantesson
Copy link
Contributor

  • Allow repo admin to merge even if not all reviews are done/ok. Currently only status checks was possible to bypass
  • Show red button instead of green for admin in this case (see screeshot)
  • API merge endpoint add optional force_merge option which corresponds to above (only for admin)
  • Some refactoring and fixes

Screenshot

image

@lafriks lafriks added the type/enhancement An improvement of existing functionality label Jan 5, 2020
@lafriks lafriks added this to the 1.12.0 milestone Jan 5, 2020
@lafriks lafriks added the type/changelog Adds the changelog for a new Gitea version label Jan 5, 2020
@davidsvantesson davidsvantesson changed the title Repo admin merge pr Allow repo admin to merge PR regardless of review status Jan 5, 2020
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jan 6, 2020
@codecov-io
Copy link

codecov-io commented Jan 6, 2020

Codecov Report

Merging #9611 into master will increase coverage by <.01%.
The diff coverage is 88.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #9611      +/-   ##
==========================================
+ Coverage   42.21%   42.21%   +<.01%     
==========================================
  Files         590      591       +1     
  Lines       78085    78085              
==========================================
+ Hits        32961    32964       +3     
+ Misses      41077    41075       -2     
+ Partials     4047     4046       -1
Impacted Files Coverage Δ
models/issue_tracked_time.go 58.67% <ø> (-4.18%) ⬇️
modules/convert/issue.go 100% <100%> (ø)
routers/api/v1/repo/issue_tracked_time.go 39.56% <40%> (ø) ⬆️
modules/process/manager.go 78.31% <0%> (+3.61%) ⬆️

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 618e5e3...1b75cda. Read the comment docs.

@lafriks
Copy link
Member

lafriks commented Jan 7, 2020

@zeripath that is not correct English

@guillep2k
Copy link
Member

@zeripath that is not correct English

@lafriks You mean cannot?

@davidsvantesson
Copy link
Contributor Author

I reformulated the messages instead 😏

@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 Jan 9, 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 Jan 9, 2020
@davidsvantesson davidsvantesson requested a review from lunny January 9, 2020 17:44
}
prConfig := prUnit.PullRequestsConfig()

if err := pr.CheckUserAllowedToMerge(doer); err != nil {
Copy link
Member

@lunny lunny Jan 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So all permissions check are out of this function?

@techknowlogick techknowlogick merged commit 32fb813 into go-gitea:master Jan 11, 2020
@davidsvantesson davidsvantesson deleted the repo-admin-merge-pr branch January 11, 2020 10:27
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
@delvh delvh removed the type/changelog Adds the changelog for a new Gitea version label Oct 7, 2023
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/enhancement An improvement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.