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
value = ".body.pull_request.user.login | tostring"
84
+
}
85
+
]
86
+
})
87
+
88
+
# Simple string relation
89
+
team = ".body.repository.owner.login | tostring"
90
+
}
91
+
}
92
+
}
93
+
]
94
+
95
+
depends_on = [
96
+
port_blueprint.microservice,
97
+
port_blueprint.author,
98
+
port_blueprint.team
99
+
]
100
+
101
+
}
102
+
```
103
+
Notes
104
+
When using object format for relations, combinator, property and operator fields should be enclosed in single quotes, while value should not have quotes as it's a JQ expression. The single quotes are required because these fields contain literal string values that must be passed as-is to the Port API, whereas value contains a JQ expression that should be evaluated dynamically.For all available operators, see the Port comparison operators documentation https://docs.port.io/search-and-query/comparison-operators.
7
105
---
8
106
9
107
# port_webhook (Resource)
10
108
11
-
Webhook resource
109
+
# Webhook resource
110
+
Webhook resource can be used to create webhooks integrations in Port.
value = ".body.pull_request.user.login | tostring"
193
+
}
194
+
]
195
+
})
196
+
197
+
# Simple string relation
198
+
team = ".body.repository.owner.login | tostring"
199
+
}
200
+
}
201
+
}
202
+
]
203
+
204
+
depends_on = [
205
+
port_blueprint.microservice,
206
+
port_blueprint.author,
207
+
port_blueprint.team
208
+
]
209
+
}
210
+
211
+
```
212
+
213
+
## Notes
214
+
215
+
- When using object format for relations, `combinator`, `property` and `operator` fields should be enclosed in single quotes, while `value` should not have quotes as it's a JQ expression. The single quotes are required because these fields contain literal string values that must be passed as-is to the Port API, whereas `value` contains a JQ expression that should be evaluated dynamically.
216
+
- For all available operators, see the [Port comparison operators documentation](https://docs.port.io/search-and-query/comparison-operators).
12
217
13
218
14
219
@@ -60,7 +265,7 @@ Optional:
60
265
61
266
-`icon` (String) The icon of the entity
62
267
-`properties` (Map of String) The properties of the entity
63
-
-`relations` (Map of String) The relations of the entity
268
+
-`relations` (Map of String) The relations of the entity. Relations can be defined as either simple JQ expressions (strings) or search query objects. When using objects, the rules array must be encoded with jsonencode().
0 commit comments