backport-github-action icon indicating copy to clipboard operation
backport-github-action copied to clipboard

Create backport branches in a fork

Open laeubi opened this issue 1 year ago • 1 comments

According to this: https://github.com/sorenlouv/backport/blob/main/docs/config-file-options.md#fork The backport action should create the PRs in its own fork, we use it here with a PAT: https://github.com/eclipse-tycho/tycho/pull/3547

but the branches are created in the main repository while I would expect it to be placed in a forked one of the bot.

This currently leads to branches piling up what is not nice: https://github.com/eclipse-tycho/tycho/branches

laeubi avatar Mar 07 '24 06:03 laeubi

Hi there

I can see how this is currently a bit confusing. The default is to fork (fork:true). I think for the github action we wanted to have the opposite so fork:false.

It would be ideal if you could just specify fork: true in the github action options but it looks like that is not possible. Instead try adding repoForkOwner: eclipse-tycho-bot to the workflow file: https://github.com/eclipse-tycho/tycho/blob/main/.github/workflows/backport.yml#L28C11-L28C33

Let me know how it goes

sorenlouv avatar Mar 11 '24 09:03 sorenlouv