Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
This repository was archived by the owner on Nov 18, 2021. It is now read-only.

Disable pull requests while keeping issues for a repository #1191

Open

Description

@cirosantilli

Under settings, you can disable issues.

Also allow disabling only pull requests but not issues for projects that prefer other review mechanisms like Gerrit, but still want the GH issue tracker.

Related: dear-github/dear-github#84

Edit: reply:

Hi Ciro,Thanks for writing in! We've definitely heard some users requesting this feature over the last couple of years, and it's currently on our feature request list. I can't make any promises about if or when we may add this ability in the future, but I'll add your +1 to that feature request so the team can see it.Please let us know if there's anything else we can do for you in the meantime!All the best,Nick@nickcannariatoGitHub

Activity

  1. aspiers commented on Mar 22, 2018

    @aspiers
    Collaborator

    This is pretty much the standard meaningless reply from GitHub which I've seen with every feature request I've proposed - the request vanishes into their black box system and we have no clue when or even if it will ever be implemented.

    For now it seems that a workaround is required. Here are a few options:

    1. Reuse OpenStack's script for auto-closing all PRs. They run it periodically from cron.
    2. Build a ProBot app to auto-close PRs (or if you can find an existing one, reuse it here and please share the link here!)
    3. Set up a pull request template which tells people not to submit PRs.

    Of course you could combine the template approach with the auto-closer approach.

  2. dessant commented on Jan 23, 2019

    @dessant

    I've made a new app that immediately closes and locks new and existing issues or pull requests and also supports posting a comment and labeling. It is perfect for forks and mirrors, and you can configure it to your liking. Let me know how it works for you!

    https://github.com/dessant/repo-lockdown

  3. phoe commented on Jan 28, 2021

    @phoe
  4. andreynering commented on Jan 28, 2021

    @andreynering

    One problem I see with this, is that it would prevent people to see/use patches other people made available through pull requests.

    It happened to me in the past: a given bug fix or feature wasn't in master because the project was abandoned, but was available in a PR by someone that took the time to fix it. In these cases it's useful to have this code available so you can use in your own fork or patch locally.

    I think it'd be better to just lock the ability of external contributors to open new pull requests, without making the existing ones unavailable, nor preventing official contributors to open new ones..

  5. andrewkfiedler commented on Jan 28, 2021

    @andrewkfiedler

    One problem I see with this, is that it would prevent people to see/use patches other people made available through pull requests.

    It happened to me in the past: a given bug fix or feature wasn't in master because the project was abandoned, but was available in a PR by someone that took the time to fix it. In these cases it's useful to have this code available so you can use in your own fork or patch locally.

    I think it'd be better to just lock the ability of external contributors to open new pull requests, without making the existing ones unavailable, nor preventing official contributors to open new ones..

    I think that case is still handled if issues are open, and the person posts a link to their fork that fixes the issue.

  6. untitaker commented on Jan 28, 2021

    @untitaker
  7. nihaals commented on Apr 3, 2021

    @nihaals

    Their roadmap repo does actually seem to have PRs restricted to collaborators.

    I went to a random fork and tried to create a PR and got this:

    image

    Maybe they plan on opening this toggle to everyone in the future?

    They also have this enabled for creating issues (without disabling them):

    image

  8. crawfxrd commented on Apr 8, 2021

    @crawfxrd

    @nihaals That's from "Interaction limits" in settings. But this also prevents users from making issues or even comments on issues. (Which could work for read-only mirrors on GitHub, but that's not the use case for this issue.)

  9. lastmjs commented on Jul 6, 2021

    @lastmjs

    I can see the interaction limits on one of my repos. I would love to have some more granular control with interaction limits, for example in my case I want to restrict pull requests but leave issues open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions