MicrosoftPremier / VstsExtensions

Documentation and issue tracking for Microsoft Premier Services Visual Studio Team Services Extensions
MIT License
56 stars 14 forks source link

Is it possible to customize the title when there are multiple build quality checks #204

Closed qinl-li closed 1 year ago

qinl-li commented 1 year ago

Hi,

I added two build quality checks in the pipeline. One is to check code coverage using a fixed threshold. The other one diff from the baseline.

image

As you can see, they appear the same on the page. Is it possible to customize them?

ReneSchumacher commented 1 year ago

Hi @qinl-li,

you can use the runTitle property to separate the two build quality checks. See reporting options for more information.

qinl-li commented 1 year ago

@ReneSchumacher Thanks for your quick reply! I have played around with that property and it doesn't seem to work:

image

Here is the task definition:

image image image
ReneSchumacher commented 1 year ago

Hi again,

I just realized that you're using the pull request feature. Unfortunately, we currently don't put the run title into the PR status message. We could easily add the run title to the PR status, but I'm afraid that this might lead to very long status messages which are then cut off by the UI. Let me look into this. Maybe we can just use the first couple characters (maybe 10-20) from the run title and update the status like this: "{Run Title}: {Status Message}" (e.g., "Fixed Threshold: Code coverage policy passed with 89.9358% (420/467 branches)."

qinl-li commented 1 year ago

Sounds good! That would be very helpful! thank you!

ReneSchumacher commented 1 year ago

Hi @qinl-li,

I'm closing this issue now since I (finally) have implemented your change in the next version (v9.0.0). I'll hopefully release the update by the end of this week. If you need additional assistance or the new solution doesn't meet your needs, please feel free to either comment on the closed issue or open a new one.

Thanks for your feedback!