Skip to content

Hide survey banner on stable branches

Achilleas Pipinellis requested to merge banner-stable-branches into master

This is continuation and fix for !1422 (merged).

We don't want the banner to be shown on stable branches. This introduces a new function that checks if CI_COMMIT_REF_NAME is defined, and if not, it uses Git to find the current branch name.

If show_banner is false and current_branch is not a stable branch, hide the banner.

Merge request reports