Open gabriel-farache opened 2 weeks ago
Hey :wave: Thanks for raising this!
Unfortunately this isn't a bug, more of a feature request as the if
option isn't supported on the outputs yet. Think it seems like a good idea though to be able to implement this.
The output
object however is pretty unstructured, so wondering how best to implement this. The links
part is standard, but there could be other properties in there so how do we best carry the if
option into those blocks too, could be tricky.
📜 Description
In the
output
field of the templatespec
,if
statement are not applied:With the above spec, the link is always displayed even if CI is not equal to
Yes
👍 Expected behavior
THe
if
statement should be matched and thelink
should only be applied/displayed if the condition matches👎 Actual Behavior with Screenshots
The
link
is displayed no matter if the condition is matched.👟 Reproduction steps
Create a template with the following or similar
output
spec:📃 Provide the context for the Bug.
No response
🖥️ Your Environment
No response
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Code of Conduct?
Are you willing to submit PR?
None