robotcode icon indicating copy to clipboard operation
robotcode copied to clipboard

[ENHANCEMENT, `robot.toml`] Make `no-status-rc` accept conditions (like `enabled` does)

Open Noordsestern opened this issue 6 months ago • 3 comments

Gude!

I have a profile that I'd like to active in CI environment:

[profiles.ci]
enabled = { if = "environ.get('CI') == 'true'" }
no-status-rc = { if = "environ.get('CI_COMMIT_REF_NAME') == 'main'" }

The profile is automatically enabled when the environment variable CI is set. Which is awesome. Now depending on the branch ci is working on, want the status-rc to be returned or not.

Now, I can duplicate the CI-job, but it would be very convenient when boolean configurtions (like no-status-rc) would accept conditions just like enabled.

Background: feature branches must fail an be reviewed before being merged. Test runs on main must not fail the pipeline, as their results are reported in test reporting tool.

Regards

Noordsestern avatar Jul 31 '25 11:07 Noordsestern