Skip to content

No button to merge PR #3668

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

Closed
2 of 7 tasks
AntouanK opened this issue Mar 13, 2018 · 13 comments · Fixed by #3689
Closed
2 of 7 tasks

No button to merge PR #3668

AntouanK opened this issue Mar 13, 2018 · 13 comments · Fixed by #3689
Labels
Milestone

Comments

@AntouanK
Copy link

AntouanK commented Mar 13, 2018

  • Gitea version (or commit ref): a2a49c9
  • Git version: 2.15.0
  • Operating system: docker
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Cannot merge PR anymore!
I pulled the latest docker image earlier today.
Now, when I open a PR in any private repo, there's no button to merge it! Am I missing something?
Seems like it's related to this commit a2a49c9 ?

Screenshots

screenshot_2018-03-13_18-09-20

@lafriks
Copy link
Member

lafriks commented Mar 13, 2018

Is master branch protected?

@AntouanK
Copy link
Author

Yes, and develop. But from direct commits. Not PRs
I had it like that in previous versions and it worked fine.

@lunny
Copy link
Member

lunny commented Mar 14, 2018

Do you in whitelist on protected branch?

@AntouanK
Copy link
Author

No, I didn't add anything in the whitelist.

@lunny
Copy link
Member

lunny commented Mar 15, 2018

Yes. #3544 ask you have to add the people who has permission to merge pull request, not repo writers any more.

@lunny lunny added the type/question Issue needs no code to be fixed, only a description on how to fix it yourself. label Mar 15, 2018
@lafriks lafriks added backport/v1.4 type/bug and removed type/question Issue needs no code to be fixed, only a description on how to fix it yourself. backport/v1.4 labels Mar 15, 2018
@lafriks
Copy link
Member

lafriks commented Mar 15, 2018

@lunny this should probably be changed if noone is specified in whitelist than everyone can merge, otherwise it will break a lot of instances

@lafriks lafriks added this to the 1.5.0 milestone Mar 15, 2018
@lunny
Copy link
Member

lunny commented Mar 15, 2018

We need a migration?

@lafriks
Copy link
Member

lafriks commented Mar 15, 2018

@lunny no just add if non are defined than everyone with write rights can merge

@lunny
Copy link
Member

lunny commented Mar 15, 2018

@lafriks but that's conflict with the push policy.

@lafriks
Copy link
Member

lafriks commented Mar 15, 2018

@lunny kind of, direct push is still not possible. GitHub also allow merge to protected branches for writers but does not allow direct pushes.
Currently it is possible to allow merge for everyone with write rights only by keeping this list manually up to date that is not best option and will confuse many users as it was working for them in up to 1.4.x

@lafriks
Copy link
Member

lafriks commented Mar 15, 2018

Also it is currently not possible to set that users can merge but not push directly. As if adding user to whitelist will actually make branch protection a bit useless... I think we have made it worse with #3544 than it was before...

@Chri-s
Copy link
Contributor

Chri-s commented Mar 15, 2018

What would be a good solution? Adding a second whitelist for users which are allowed to merge but not to push directly to the branch? And perhaps allowing everyone with write access to merge if both whitelists are empty?

For my workflow it is important that some users have write access to the repository but don't have any chance to push or merge into the protected branches.

@lunny
Copy link
Member

lunny commented Mar 16, 2018

@Chri-s @lafriks add a whitelist to set who can merge pull request. And then the old whitelist is only who can push directly. The new whitelist is optional, if it is not checked, then the people who can push directly could merge pull request like currently master version. And it's default not checked for compitable. So that both your requirement could be resolved.

@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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants