GithubHelp home page GithubHelp logo

Comments (6)

ciro-unity avatar ciro-unity commented on May 5, 2024 3

several smaller PRs

I've never seen this concept happen on this repo yet 🤣

from open-project-1.

ciro-unity avatar ciro-unity commented on May 5, 2024 2

We can do. The only investment is having to keep master for all the existing open PRs, and manually merge them to master first and then to main. But it shouldn't be a big deal of work.
For new PRs - once we make main the default branch, it should just be automatic. Right?

https://github.com/github/renaming

from open-project-1.

AlexChesser avatar AlexChesser commented on May 5, 2024 2

I recently went through this exercise on our production environments at work. Around 50 repos didn't take much time at all. I tend to think the rip-off-the-band-aid approch is needed here, since at no point are there going to be FEWER pull requests.

Pull requests are blissfully easy to edit and it can 100% be done within the github website interface I can't imagine the change taking more than 15 minutes.

  1. create a new branch by typing main in the website dropdown and hitting enter

image

  1. in the list of branches choose the change-default-branch button beside master

image

  1. in each of the open PRs select the EDIT button

image

  1. in the subject-line-dropdown alter the BASE to main and save

image

  1. delete master branch

image

@ciro-unity

from open-project-1.

AlexChesser avatar AlexChesser commented on May 5, 2024 2

For new PRs - once we make main the default branch, it should just be automatic. Right?

yes - all new PRs (will) should come in to main by default once you complete steps 1 and 2 above!

from open-project-1.

ManuelRauber avatar ManuelRauber commented on May 5, 2024 2
  1. in the subject-line-dropdown alter the BASE to main and save

Ah that's great, I didn't know I could edit the PRs' target branch like that. I'll get on this then.

You can also, if you need to, target another PR for example and GitHub will retarget dependent PRs if the base PR gets merged. Quite nice, if you have a bigger PR for refactoring split into several smaller PRs.

from open-project-1.

ciro-unity avatar ciro-unity commented on May 5, 2024
  1. in the subject-line-dropdown alter the BASE to main and save

Ah that's great, I didn't know I could edit the PRs' target branch like that. I'll get on this then.

from open-project-1.

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.