eclipse-egit / egit

EGit, the git integration of Eclipse IDE
https://www.eclipse.org/egit/
Eclipse Public License 2.0
19 stars 7 forks source link

Disable pull requests #9

Open Bananeweizen opened 11 months ago

Bananeweizen commented 11 months ago

Description

I would like to disable pull requests in all jgit and egit repositories (except for the .eclipsefnd repos). It seems that is not possible via otterdog directly. Any objections against raising a gitlab issue for doing so? In other projects like the Apache project I have also seen repositories explicitly being marked as "mirror" repositories in the GitHub UI. Does anyone know how that can be done, and whether that would be useful for our repositories, too?

And when PRs are disabled, is there any possibility of creating a kind of notice/banner to explain what to do instead?

Motivation

avoiding people to create PRs, as has already happened

Alternatives considered

No response

Additional context

No response

Bananeweizen commented 11 months ago

Looking into documentation and discussion, there seems to be nothing in the official settings. We can do all of the following:

I would try the first 3 in that order, if someone agrees.

msohn commented 11 months ago

Pull requests can also be imported as Gerrit changes by committers here https://eclipse.gerrithub.io/plugins/github-plugin/static/pullrequests.html That's a one-way street, AFAIK importing updates of existing PRs is not supported. To make that clear to the contributor I closed the PR on the GitHub side after importing it into Gerrit telling the user that the code review and eventually necessary updates have to happen there.

Bananeweizen commented 11 months ago

I really recommend everyone adds the above import URL to his/her own menu settings in gerrithub. E.g. mine starts like this now: grafik

msohn commented 2 months ago

Not sure if disabling forking is a good idea. I am ok for the other 3 steps you proposed