Delete branches created by Staticman
See original GitHub issueCurrently, branches created by Staticman need to be deleted manually, which is a bit of a pain.
We could add a webhook that would allow us to detect every time a pull request created by the bot is either merged or closed, and we could delete the associated branch at that point.
Should we ask people to manually set up this webhook, or should we set it up for them when they run connect
? I like how the second option is automated, but isn’t it a bit intrusive as well?
Any thoughts welcome.
EDIT: Actually, ignore the second option, as we’d need admin access to the repos in order to create the hooks, which we obviously don’t want.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Webhooks - Staticman
The branches created by Staticman are just like any other branch in the repository, and it's up to you to manage it, including...
Read more >Create and delete branches - The GitHub Blog
Now you can create and delete branches from GitHub.com. Create a branch In your repository's branch selector, just start typing a new branch...
Read more >Staticman at Heroku - Spinning Numbers
Configure and deploy an instance of Staticman at Heroku. ... Sends a command to GitHub to delete the branch that was created for...
Read more >Configuration - Minimal Mistakes - GitHub Pages
Add Staticman as a collaborator on GitHub (legacy); Configure Staticman ... a “Pull request” event to delete Staticman branches on merge.
Read more >git branch - Git: Is there a way to delete (locally and remote) all ...
Git has no idea who created some branch name, so no, this is not possible in general. I basically wants to delete all...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Should we change
v1
tov2
in the Payload URL since staticman is now on version 2 or should it be left intact?Oops. Pull request is what I meant, not Push.