Mayfly

Pull request previews that sleep when idle

A preview for every pull request, gone when it's merged.

Reviewers click one link and see the change running. When nobody's using it the preview sleeps, so it costs almost nothing, and when the pull request closes Mayfly removes it.

The life of one preview
  1. Mon 10:02Pull request #42 opens
  2. 10:02Built from its own code in 14 s
  3. 10:30Nobody's looking, so it falls asleep
  4. Tue 09:40A reviewer opens the link and it wakes up
  5. Tue 16:15Merged, and the preview is gone

awake asleep building

Built from the pull request

Mayfly builds the exact commit with the repository's own Dockerfile and runs it on its own.

Asleep when idle

After a short quiet spell the app stops. The next visit wakes it in a second or two, no rebuild.

Cleans up after itself

Merge or close the pull request, or let its time run out, and the preview is deleted.

Questions people ask first

Which pull requests get a preview?

Pull requests on the repositories an admin has allowed. Pull requests from forks don't, to keep the server safe.

How long does a preview stay up?

Until the pull request is merged or closed, or its lifetime runs out. Admins choose the lifetime for each repository, and a keep-preview label keeps one open.

What does it cost?

Only the time a preview is awake. The Cost page shows an estimate of what sleeping has saved this month.

Where can I try it?

Open the board to see the previews that are up now, or sign in as an admin to try a pull request without going to GitHub.