It is also possible to edit the existing PR on github and simply change the
base branch to apache/main.

On Tue, Jul 7, 2020 at 10:21 PM Otto Fowler <[email protected]> wrote:

>  What I did was to rebase -i on upstream main and force push.
> Then in the PR reset the base to main
>
> On July 7, 2020 at 16:01:28, Andy LoPresto ([email protected]) wrote:
>
> The PRs should be mergeable to main automatically as I _moved_ the branch
> rather than copying it, so unless there are new code conflicts, there
> shouldn’t be a problem. There are tools from other developers [1] which can
> automate the process of rebasing, but in general I don’t think this is
> necessary. br/> <
> For anyone who wishes to relabel their local working copy branches, you can
> follow these instructions from [2]. br/> <
> If someone has a local clone, then can update their locals <
> https://twitter.com/xunit/status/1269881005877256192> like this:
>
> $ git checkout master
> $ git branch -m master main
> $ git fetch
> $ git branch --unset-upstream
> $ git branch -u origin/main
> $ git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
>
>
> I will send new updates when the other NiFi subprojects (Registry, MiNiFi
> Java, MiNiFi C++, and FDS) have had their default branches renamed. br/> <
> [1] https://github.com/ethomson/retarget_prs <
> https://github.com/ethomson/retarget_prs>
> [2]
>
> https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx
> <
>
> https://www.hanselman.com/blog/EasilyRenameYourGitDefaultBranchFromMasterToMain.aspx
> >
>
>
>
> Andy LoPresto
> [email protected]
> [email protected]
> He/Him
> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69
>
> > On Jul 7, 2020, at 9:14 AM, Matt Burgess <[email protected]> wrote:
> > br/>> IMO that's a yes, the branch is created and noww main has more
> commits
> > than master and is the "source of truth". We should be using main as
> > the default branch (the way it is in Github now), rebasing PRs atop
> > main and changing the PRs in Github to have main as the base branch
> > (so no mistakes are made when merging). With any luck master just kind
> > of fades away, or perhaps at some point we just delete it.
> > br/>> With some scripting we should be able to automaate such PR updates,
> but
> > personally it felt a little heavy-handed so I haven't written said
> > script(s). Instead I'm just updating my own PRs and when I review
> > someone's, I'm leaving a comment to please switch over to main as the
> > base branch (both in the code and the PR).
> > br/>> That's just my two cents though, happy to discuuss further. I think
> we
> > really just need to avoid updating the master branch from here on out
> > rather than trying to keep them in sync, or even worse having them
> > diverge each with new commits that aren't in the other.
> > br/>> Regards, <
> > Matt
> > br/>> On Tue, Jul 7, 2020 at 12:06 PM Otto FFowler <
> [email protected]> wrote:
> >> br/>>> So, is that a yes??
> >> br/>>> On July 7, 2020 at 10:53:59, Matt Burgeess ([email protected]
> )
> wrote:
> >> br/>>> Thanks Mike!! I rebased against main since that's our default
> branch
> >> from now on, so should be ok now.
> >> br/>>> On Tue, Jul 7, 2020 at 10:52 AM Mike Thhomsen <
> [email protected]>
> >> wrote:
> >>> br/>>>> I'll take it. <
> >>> br/>>>> On Tue, Jul 7, 2020 at 9:57 AMM Matt Burgess <
> [email protected]> wrote:
> >>> br/>>>>> I've got a PR [[1] that's approaching 1.5 years since the last
> update,
> >>>> but it should be good to go and fairly straightforward to test, any
> >>>> takers? :) I just rebased it against the laster master branch, should
> >>>> I be using main as of this point, or is there more work to be done
> >>>> before we switch over?
> >>>> br/>>>>> Thanks, <
> >>>> Matt
> >>>> br/>>>>> [[1] https://github.com/apache/nifi/pull/2718
> >>>> br/>>>>> On Tue, Jul 7, 2020 at 5:48 AM Mike Thomsen <
> [email protected]>
> >>>> wrote:
> >>>>> br/>>>>>> Might also be aa good time to think about closing out old
> PRs (like
> >> age >
> >>>>> 1.5 years).
> >>>>> br/>>>>>> On Mon, Jul 6, 2020 at 10:49 PM Otto Fowler <
> [email protected]>
> >>>> wrote:
> >>>>> br/>>>>>>> So, should we rebase our outstanding PR’s? Should all
> outstanding
> >>>> PR’s
> >>>>>> get a note?
> >>>>>> br/>>>>>>> On Julyy 6, 2020 at 17:57:25, Andy LoPresto (
> [email protected])
> >>>> wrote:
> >>>>>> br/>>>>>>> Apache Infra completed the change. Everything looks ok
> from my end
> >> but
> >>>> as I
> >>>>>> made the initial change, can someone else verify that their local
> >> repo
> >>>> is
> >>>>>> good to go? Once that’s done, I’ll update the committer guide and
> >>>> GitHub PR
> >>>>>> template with the new language, and check the CI/CD for GitHub
> >> Actions
> >>>> too.
> >>>>>> Thanks. br/> <
> >>>>>> br/>>>>>>> Andy LooPresto
> >>>>>> [email protected]
> >>>>>> [email protected]
> >>>>>> He/Him
> >>>>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D EF69
> >>>>>> br/>>>>>>>> On Jul 6, 2020, at 11:02 AM, Joe Witt <
> [email protected]>
> wrote:
> >>>>>>> br/>> Looking into this we might be fine. We use thee github
> >> 'default
> >>>>>> branch'
> >>>>>>> which I think you'll get changed by the INFRA ticket.
> >>>>>>> br/>> We then might want to look at
> >>>>>> https://github.coom/ethomson/retarget_prs
> >>>>>>> br/>> Thanks <
> >>>>>>> br/>> On Mon, Jul 6, 2020 at 9:21 AM Joe Witt <[email protected]
> >
> >> br/>>>>>>> wrote: <
> >>>>>>> br/>>> Andy <
> >>>>>>>> br/>>> I *think* we need to change the githubb actions config a
> >>>> little
> >>>>>> bit as
> >>>>>>>> well. It defaults to master I believe and we can specify an
> >>>> alternative
> >>>>>>>> branch of 'main'. Maybe we just keep an eye on it and see if
> >> there
> >>>> is a
> >>>>>>>> material difference. One example is the 'build passing'
> >> indicator
> >>>> comes
> >>>>>>>> from master unless you override it (as I've read previously).
> >>>>>>>> br/>>> Thanks <
> >>>>>>>> br/>>> On Mon, Jul 6, 2020 at 9:18 AM Andy LooPresto <
> >>>>>> [email protected]> wrote:
> >>>>>>>> br/>>>> It appears that we don’t havee the ability to switch the
> >>>> default
> >>>>>> branch
> >>>>>>>>> ourselves; I’ve filed
> >>>>>> https://issues.apache.org/jira/browse/INFRA-20487
> >>>>>> <
> >>>>>>>>> https://issues.apache.org/jira/browse/INFRA-20487> requesting
> >>>> Apache
> >>>>>>>>> Infra takes care of that. Until that time, committers _should_
> >>>> merge
> >>>>>> the
> >>>>>>>>> code to main but I will monitor to ensure we keep the branches
> >> in
> >>>> sync.
> >>>>>> The
> >>>>>>>>> history was moved, the only remaining step is GitHub being
> >> aware
> >>>> of the
> >>>>>>>>> default branch change.
> >>>>>>>>> br/>>>> br/>>>> Andy LoPresto <
> >>>>>>>>> [email protected]
> >>>>>>>>> [email protected]
> >>>>>>>>> He/Him
> >>>>>>>>> PGP Fingerprint: 70EC B3E5 98A6 5A3F D3C4 BACE 3C6E F65B 2F7D
> >> EF69
> >>>>>>>>> br/>>>>> On Jul 4, 2020, at 11:57 AMM, Joey Frazee
> >>>>>> <[email protected]>
> >>>>>>>>> wrote:
> >>>>>>>>>> br/>>>>> @@alopresto Do you want everyone individually pushing
> >> to
> >>>> both
> >>>>>> master and
> >>>>>>>>> main or are you intending to keep it in sync until it’s made
> >> the
> >>>>>> default?
> >>>>>>>>>> br/>>>>> -joey <
> >>>>>>>>>> On Jul 2, 2020, 6:39 PM -0500, [email protected], wrote:
> >>>>>>>>>>> This is an automated email from the ASF dual-hosted git
> >>>> repository.
> >>>>>>>>>>> br/>>>>>> alopresto pusheed a change to branch main
> >>>>>>>>>>> in repository https://gitbox.apache.org/repos/asf/nifi.git.
> >>>>>>>>>>> br/>>>>>> br/>>>>>> at 239a2e8 NIFFI-7513 Added custom DNS
> >>>> resolution
> >>>>>> steps to walkthrough
> >>>>>>>>> (#4359)
> >>>>>>>>>>> br/>>>>>> No new revisionns were added by this update.
> >>>>>>>>>>> br/>>>> br/>>>> br/> <
> >>>>>> br/>>>>> br/> <
>

Reply via email to