sorenlouv / backport-github-action

Backport CLI tool as a Github Action
https://github.com/sqren/backport
24 stars 16 forks source link

Create backport branches in a fork #120

Open laeubi opened 4 months ago

laeubi commented 4 months ago

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

sorenlouv commented 4 months ago

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