SvanBoxel / delete-merged-branch

No more manually deleting merged branches, this lovely app does it for you.
https://github.com/apps/delete-merged-branch/
ISC License
323 stars 55 forks source link

Delete branches on forks too #20

Closed ctrom closed 6 years ago

ctrom commented 6 years ago

Is it possible to have branches that are merged from forks automatically deleted?

SvanBoxel commented 6 years ago

Hi @ctrom 👋

You cannot grant GitHub apps access to other repositories besides the repository where the app is installed. So no, unfortunately, this isn't possible.

ctrom commented 6 years ago

@SvanBoxel That's unfortunate. Thanks for the response though!

ad-m commented 5 years ago

OK, I can not give permission to the target repository.

If I create my own fork, I will create a new branch on it, then I will create a PR from my own fork to the upstream, can branch on my repository be removed after merging to the upstream?

I often cooperate through forks, I do not remove branches, and after a while my fork is a collection of unnecessary (merged to upstream) branches.

I see the risk that GitHub may not trigger an event in the way we need it.