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 preview channel on close/merge

See original GitHub issue

When a PR is merged or closed, is it possible to detect this and delete the associated preview channel?

I have set the expiry date to 30 days which isn’t a problem but when dependabot or renovate decides it’s time for 20 PRs then that’s a lot of temporary channels being created. There is a limit of 50 preview channels in firebase (I think) and trying to add more fails with a 429. I set the expiry date to 30 days under the assumption that if I left the PR long enough the channel would expire and it wouldn’t be able to redeploy a new one? Correct me if I’m wrong. Firebase also seems to have issues deleting expired channels as they sit there “pending” for a day or so before going.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:10
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
kozrcommented, Dec 25, 2020

Is anyone working on this? If not, I’ll give it a shot. It’ll be my first open-source contribution, so not sure if I can handle it. I really want this feature though haha.

1reaction
samatcolumncommented, Aug 2, 2022

It’s been a few years but huge +1 to this feature. My team has 12 developers and we keep running out of preview channels. If we set the expiration to be too short (1 day, etc) they’re not available when we need them. If we set it to be too long (7d) then we run out all the time.

This would help clean up stale ones. I don’t think we ever actually have 50 live PRs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage live & preview channels, releases, and versions for ...
Manually delete a preview channel · Firebase console. In the row for the preview channel, click more_vert, then select Delete channel. Confirm the...
Read more >
Merge requests - GitLab Docs
Following the comment box, select Close merge request. GitLab closes the merge request, ... GitLab recommends you close, rather than delete, merge requests....
Read more >
4 Manage Source Code Files with Git - Oracle Help Center
Click the Preview tab to preview the format. Click Submit. The comment adds in the Conversation tab along with icons to reply, edit,...
Read more >
How to use Firebase Preview Channels - YouTube
We also walk through several firebase cli commands to create firebase preview channels, delete firebase preview channels, deploy firebase ...
Read more >
Connect your GitLab to Slack integration in 2 minutes - Zapier
Send Slack channel messages for new issue events in GitLab. Zapier. by Zapier ... Triggers on an open, merge, or close merge request...
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