question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Delete branches created by Staticman

See original GitHub issue

Currently, 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:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
OmarEmaraDevcommented, Jul 19, 2017

Should we change v1 to v2 in the Payload URL since staticman is now on version 2 or should it be left intact?

1reaction
mmistakescommented, Aug 17, 2016

Oops. Pull request is what I meant, not Push.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found