Skip to content

Add delete button to files in a PR #1127

Closed

Description

@sindresorhus

Very often people include files I don't want in PRs. Like package-lock.json or editor-specific config. I would like a quick way to remove such files.

screen shot 2018-03-03 at 01 54 18

(From https://github.com/sindresorhus/broccoli-svgo/pull/1/files#diff-32607347f8126e6534ebc7ebaec4853d)

Unless the PR submitter has unchecked the "Allow maintainers to edit" checkbox, we are allowed to delete it if we go directly to the file, like here: https://github.com/jaswilli/broccoli-svgo/delete/update/package-lock.json

So the implementation could be to find the branch and then go to:

https://github.com/<username>/<repo>/delete/<branch>/<filename>

Activity

  1. added
    small
    and removed on May 17, 2018
  2. JackLaird0 commented on Jul 2, 2018

    @JackLaird0

    Hi there! I’m a first-time contributor and was hoping to help out with this issue. I noticed nobody was assigned to it, but if there’s already a solution in progress I’m happy to try helping out elsewhere. Thanks!

  3. sindresorhus commented on Jul 2, 2018

    @sindresorhus
    MemberAuthor

    @JackLaird0 No one is working on this. Go ahead 😀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions