Skip to content

Instantly share code, notes, and snippets.

@ngundotra
Created August 12, 2022 20:42
Show Gist options
  • Save ngundotra/13881cf0a68e187a3afca227ced396e8 to your computer and use it in GitHub Desktop.
Save ngundotra/13881cf0a68e187a3afca227ced396e8 to your computer and use it in GitHub Desktop.
{
"tasks": [
{
"httpTask": {
"url": "https://api.github.com/repos/<org>/<repo>/pulls",
"method": "GET",
"headers": [
{
"key": "User-Agent",
"value": "curl/7.78.0"
}
]
}
},
{
"conditionalTask": {
"attempt": [
{
"jsonParseTask": {
"path": "$[?(@.number == <PR-number> && @.merged_at == null)].number"
}
},
{
"valueTask": {
"value": 1
}
}
],
"onFailure": [
{
"valueTask": {
"value": 2
}
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment