If you want to create an issue in case deployment failed, you need to provide the following inputs
| Inputs | Values |
|---|---|
| GitHub connection (OAuth or PAT) | Select a Github endpoint |
| Method | Select Post |
| Body |
{ "title": "Deployment to environment $(Release.EnvironmentName) failed", "body": "Release "assignees": [ "jikuma" ], "milestone": 1, "labels": [ "Deployment" ] } |
| URL and parameters | https://api.github.com/repos/RepoName/issues e.g: https://api.github.com/repos/jikuma/sampledevspacesapp/issues |
If you do not have milestone number, do not specify in Body json
In "Control Options" part of the task set "Run this task" as "Only when a previous task has failed."