You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
Is it possible to create a pull request status menu for any genre so long as the statusName matches? Think of a custom policy that is similar to Azure DevOps' built in code coverage check. The name of that status is "codecoverage" but the genre is the lowercase name of the build definition it's running against. This means you end up with multiple genres within the same policy-name--one for each build.
We have a custom policy that does something similar and would like to create a pull request status menu. The problem is, it seems that bothstatusName and statusGenre are required while what I need is to match my policy's name regardless of the genre. I've tried omitting statusGenre, setting it to null, "" and even tried "*" to no avail. Of course if I set the genre to the name of one of my builds I get a menu, but I don't want to have to do this for each build.
Is there some syntax that makes this possible or am I out of luck?
"contributions": [
{
"id": "my-pr-status-menu",
"type": "ms.vss-web.menu",
"description": "Status menu for status with name 'my-pr-policy'",
"targets": [
"ms.vss-code-web.pull-request-status-menu"
],
"properties": {
"statusGenre": "WHAT TO PUT HERE?",
"statusName": "my-pr-policy"
}
},
{
"id": "my-pr-status-menu-item-requeue",
"type": "ms.vss-web.action",
"description": "Requeues the Pull Request Policy",
"targets": [
".my-pr-status-menu"
],
"properties": {
"text": "Requeue Policy",
"title": "ms.vss-code-web.pull-request-status-menu",
"icon": "css://bowtie-icon bowtie-status-run-outline",
"group": "actions",
"uri": "main.html",
"registeredObjectId": "myPrPolicyRequeue"
}
}
]
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is it possible to create a pull request status menu for any genre so long as the
statusName
matches? Think of a custom policy that is similar to Azure DevOps' built in code coverage check. The name of that status is "codecoverage" but the genre is the lowercase name of the build definition it's running against. This means you end up with multiple genres within the same policy-name--one for each build.We have a custom policy that does something similar and would like to create a pull request status menu. The problem is, it seems that both
statusName
andstatusGenre
are required while what I need is to match my policy's name regardless of the genre. I've tried omittingstatusGenre
, setting it tonull
,""
and even tried"*"
to no avail. Of course if I set the genre to the name of one of my builds I get a menu, but I don't want to have to do this for each build.Is there some syntax that makes this possible or am I out of luck?
The text was updated successfully, but these errors were encountered: