• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Unleash / unleash / 19264732245
86%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 11 Nov 2025 11:59AM UTC
Jobs 1
Files 1215
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Nov 2025 11:52AM UTC coverage: 91.137% (+0.01%) from 91.126%
19264732245

push

github

web-flow
chore: configure the 'maintenanceMode' flag to accept variants (#10956)

Configure the `maintenanceMode` flag type to be `boolean | Variant` and
update the env parsing to allow passing strings from the env.

The [first
impl](https://github.com/Unleash/unleash/pull/10956/commits/3bbfc9e68)
required you to set a full, variant -- stringified as json -- in the
env, but this is both error-prone and not very user friendly.
Additionally, the name of the variant isn't really important, and if
you're passing a string, you probably want it to be true.

As such, the [second
impl](https://github.com/Unleash/unleash/pull/10956/commits/c38357baa)
updates the env parsing to read the full string value into a
pre-formatted variant if it's not parseable as a boolean.

As such, to set a custom message, you can now do:

```sh
UNLEASH_EXPERIMENTAL_MAINTENANCE_MODE='Custom message from plain env var string' yarn dev
```

With the [updates to the
UI](https://github.com/Unleash/unleash/pull/10961), it'll look a little
something like this:

<img width="388" height="64" alt="image"
src="https://github.com/user-attachments/assets/6b8a174b-d75f-4748-8f1a-1ad4ebce2073"
/>

## Rationale

This allows locking down Unleash instances with a custom message.
Previously, you'd have to use both maintenance mode and a custom banner
for this, but that requires more work to set properly and it shows two
banners, when you really only want the one.

7226 of 7278 branches covered (99.29%)

25 of 25 new or added lines in 2 files covered. (100.0%)

68912 of 75614 relevant lines covered (91.14%)

418.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 19264732245.1 11 Nov 2025 11:59AM UTC 1215
91.14
GitHub Action Run
Source Files on build 19264732245
  • Tree
  • List 1215
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #19264732245
  • b33abf03 on github
  • Prev Build on main (#19263361772)
  • Next Build on main (#19269921306)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc