From d983ac74f0e353af0067c46bb483acbe52aec03c Mon Sep 17 00:00:00 2001 From: Sebass van Boxel Date: Wed, 18 Jul 2018 20:28:57 +0200 Subject: [PATCH 1/5] Add delete-merged-branch bot --- delete-merged-branch.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 delete-merged-branch.md diff --git a/delete-merged-branch.md b/delete-merged-branch.md new file mode 100644 index 0000000..c72ec13 --- /dev/null +++ b/delete-merged-branch.md @@ -0,0 +1,39 @@ +--- +title: Delete merged branch +description: No more manually deleting merged branches, this lovely bot does it for you. +slug: delete-merged-branch +screenshots: +- https://user-images.githubusercontent.com/24505883/42899819-7c05a47a-8ac7-11e8-8be9-9e3888f1bedc.gif +authors: +- svanboxel +repository: delete-merged-branch +host: http://delete-merged-branch.now.sh/ +--- + +# Probot: Delete merged branch + +> A GitHub app built with [Probot](https://github.com/probot/probot) that automatically deletes a branch after it's merged. That's it, enjoy! +### Looking for an example? + +## Application logic +Only PRs that actually get approved and merged will be automatically flagged for deletion. The usual flow will be as follows: + 1. Author opens a PR from a feature branch. + 2. PR gets reviewed and CI runs. + 3. Reviewer or author merges the PR. + 4. The feature branch gets deleted by this bot. + +The following flow doesn't result in deletion of the branch: + 1. Author opens a PR from a feature branch. + 2. PR gets reviewed and CI runs. + 3. CI fails/PR gets declined. + 4. Reviewer or author decides to close the PR without merging it. + +## Installation + +Want to try it out? You can install the app directly from [**this page**](https://github.com/apps/delete-merged-branch). + +See [readme.md](https://github.com/SvanBoxel/delete-merged-branch/blob/master/README.md) if you would like to run your own instance of this app. + +## Feedback? + +Please [**open an issue**](https://github.com/SvanBoxel/delete-merged-branch/issues/new) From 177778c77eca13edddb3501627c1be1dceb06da4 Mon Sep 17 00:00:00 2001 From: Sebass van Boxel Date: Wed, 18 Jul 2018 20:40:00 +0200 Subject: [PATCH 2/5] Move app to apps folder --- delete-merged-branch.md => _apps/delete-merged-branch.md | 1 - 1 file changed, 1 deletion(-) rename delete-merged-branch.md => _apps/delete-merged-branch.md (98%) diff --git a/delete-merged-branch.md b/_apps/delete-merged-branch.md similarity index 98% rename from delete-merged-branch.md rename to _apps/delete-merged-branch.md index c72ec13..93e51d4 100644 --- a/delete-merged-branch.md +++ b/_apps/delete-merged-branch.md @@ -13,7 +13,6 @@ host: http://delete-merged-branch.now.sh/ # Probot: Delete merged branch > A GitHub app built with [Probot](https://github.com/probot/probot) that automatically deletes a branch after it's merged. That's it, enjoy! -### Looking for an example? ## Application logic Only PRs that actually get approved and merged will be automatically flagged for deletion. The usual flow will be as follows: From 4913d5fb4cb8dce0348b0e7f6bdebb0c6eea4e97 Mon Sep 17 00:00:00 2001 From: Sebass van Boxel Date: Wed, 18 Jul 2018 21:05:58 +0200 Subject: [PATCH 3/5] Replaced banned word 'bot' --- _apps/delete-merged-branch.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_apps/delete-merged-branch.md b/_apps/delete-merged-branch.md index 93e51d4..2a4caa4 100644 --- a/_apps/delete-merged-branch.md +++ b/_apps/delete-merged-branch.md @@ -1,6 +1,6 @@ --- title: Delete merged branch -description: No more manually deleting merged branches, this lovely bot does it for you. +description: No more manually deleting merged branches, this lovely app does it for you. slug: delete-merged-branch screenshots: - https://user-images.githubusercontent.com/24505883/42899819-7c05a47a-8ac7-11e8-8be9-9e3888f1bedc.gif @@ -19,7 +19,7 @@ Only PRs that actually get approved and merged will be automatically flagged for 1. Author opens a PR from a feature branch. 2. PR gets reviewed and CI runs. 3. Reviewer or author merges the PR. - 4. The feature branch gets deleted by this bot. + 4. The feature branch gets deleted by this app. The following flow doesn't result in deletion of the branch: 1. Author opens a PR from a feature branch. From fc485dc60efbb9605be56ea49532260a16857145 Mon Sep 17 00:00:00 2001 From: Sebass van Boxel Date: Wed, 18 Jul 2018 21:06:35 +0200 Subject: [PATCH 4/5] Removed trailing slash for app url --- _apps/delete-merged-branch.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_apps/delete-merged-branch.md b/_apps/delete-merged-branch.md index 2a4caa4..a6a79c5 100644 --- a/_apps/delete-merged-branch.md +++ b/_apps/delete-merged-branch.md @@ -6,8 +6,8 @@ screenshots: - https://user-images.githubusercontent.com/24505883/42899819-7c05a47a-8ac7-11e8-8be9-9e3888f1bedc.gif authors: - svanboxel -repository: delete-merged-branch -host: http://delete-merged-branch.now.sh/ +repository: svanboxel/delete-merged-branch +host: https://delete-merged-branch.now.sh --- # Probot: Delete merged branch From 3bb694780b5802f7d0c75803765ccb40a404919b Mon Sep 17 00:00:00 2001 From: Sebass van Boxel Date: Fri, 20 Jul 2018 07:43:43 +0200 Subject: [PATCH 5/5] Removed probot from description --- _apps/delete-merged-branch.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_apps/delete-merged-branch.md b/_apps/delete-merged-branch.md index a6a79c5..5e6939d 100644 --- a/_apps/delete-merged-branch.md +++ b/_apps/delete-merged-branch.md @@ -10,9 +10,9 @@ repository: svanboxel/delete-merged-branch host: https://delete-merged-branch.now.sh --- -# Probot: Delete merged branch +# Delete merged branch -> A GitHub app built with [Probot](https://github.com/probot/probot) that automatically deletes a branch after it's merged. That's it, enjoy! +> A GitHub app that automatically deletes a branch after it's merged. That's it, enjoy! ## Application logic Only PRs that actually get approved and merged will be automatically flagged for deletion. The usual flow will be as follows: