Coder Social home page Coder Social logo

Comments (8)

ivanayov avatar ivanayov commented on June 14, 2024 1

Taking this

from derek.

alexellis avatar alexellis commented on June 14, 2024

Thank you for logging this

from derek.

alexellis avatar alexellis commented on June 14, 2024

Still a fan of this feature

from derek.

alexellis avatar alexellis commented on June 14, 2024

Derek add label: priority/low

from derek.

alexellis avatar alexellis commented on June 14, 2024

The idea is here that:

PRs should only be raised to target master - therefore if someone raises a PR that doesn't - apply a label.

I.e.

I raise a PR to a branch named 0.7.0 - that should add a label, I don't know what label but am open to suggestions: attention/target-branch.

2nd scenario:

Someone raises a PR from the master branch of their repo. This can be destructive to merge - especially if that person has been rebasing commits / force pushing or even altering historic commits.

Derek should add a warning comment:

It appears that you are submitting changes directly from your master branch, we encourage you to raise a new pull request from a named branch i.e. git checkout -b my_feature.

It should also add a label like: attention/source-branch

In both scenarios the user can only raise a new PR to fix the problem. This means no code is needed to remove the labels.

from derek.

johnharris85 avatar johnharris85 commented on June 14, 2024

So adding a label rather than closing the PR? Would this be a separate 'feature' that could be enabled / disabled in the config yaml? Would these 2 scenarios (target and origin) be separate features? Or part of a single 'branch check' feature?

from derek.

alexellis avatar alexellis commented on June 14, 2024

This would be worth doing - even at a simplistic level - no PRs from master for instance.

from derek.

alexellis avatar alexellis commented on June 14, 2024

I met with Ivana and Dimitar. We think the action should be:

  • Close the PR (because you can't recover without creating a new PR from a different branch)
  • Give a comment - should say a git command to help them such as git checkout -b my_feature and raise a PR from there
  • Ivana liked the idea of the label - let's use the prefix of "review/" to match the listing in #43

from derek.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.