Skip to content

Conversation

SvanBoxel
Copy link
Owner

Forks should not trigger branch deletion.

This bug was introduced because the code didn't make a difference between PR's that came from a fork or the original repo. Then it grabbed the current repo name and the branch name of the fork. This could result in something like <currentRepo>/master. A merge of such a PR could trigger the delete event of the master branch where this app was installed. Not something we want.

Fixes #21

@SvanBoxel SvanBoxel merged commit 0c4bf3f into master Sep 12, 2018
@delete-merged-branch delete-merged-branch bot deleted the 21-fork-bug-fix branch September 12, 2018 19:58
SvanBoxel added a commit that referenced this pull request Sep 12, 2018
* Added test case

* Fix: forks should not branch trigger deletion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant