Giter VIP home page Giter VIP logo

branch-switcher's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar dpb587 avatar s4heid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

branch-switcher's Issues

Still current?

Hi,

I quickly tried it on madchap/django-DefectDojo#398 after install the GHA, but nothing kicks in.
Given the commits are starting to date, I was wondering if this GHA was still maintained and working?

Cheers.

Comment when branch has conflicts

When the head of the pull request cannot be changed due to conflicts with the preferred branch, branch-switcher should send a friendly message reporting the problem.

Scenarios:

  1. when head has conflicts with preferred branch
  2. when head has conflicts with base branch

Expected behaviour:

change base branch to preferred branch and

  1. comment on the pull request that after switching there are conflicts which must be resolved. It might also be helpful to mention the author.
  2. comment with the standard message

Option to filter for branches that need to be changed

By default, switching branches happens if the base does not match the preferred branch. In some scenarios this might not be the desired behaviour.

Provide include/exclude rules in the .github configuration file that allow you to restrict the 'wrong' branches to a subset.

Support labels as an exclusion rule

When opening a pull request with a specific label (e.g., ignore-branch) against a non-preferred branch, I'd expect that the base branch of the pull request will not be changed to the preferred.

Example config file:

excludeLabel: ignore-branch

After #2 is done, the config structure could also be like this:

exclude:
  labels:
    - ignore-branch
  branches:
    - master
    - rel-*

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.