Files
Pigeon/hooks.json
T

42 lines
1.1 KiB
JSON
Raw Normal View History

2026-10-15 20:33:59 -04:00
[
{
"id": "release",
2026-10-15 23:45:11 -04:00
"execute-command": "@nq@",
2026-10-15 20:33:59 -04:00
"include-command-output-in-response": false,
"pass-arguments-to-command": [
2026-10-15 23:45:11 -04:00
{ "source": "string", "name": "@pigeon@" },
2026-10-15 20:33:59 -04:00
{ "source": "payload", "name": "project.id" },
{ "source": "payload", "name": "project.namespace" },
{ "source": "payload", "name": "project.name" },
{ "source": "payload", "name": "commit.id" },
2026-10-15 23:45:11 -04:00
{ "source": "payload", "name": "tag" },
{ "source": "payload", "name": "created_at" }
2026-10-15 20:33:59 -04:00
],
"trigger-rule": {
"and": [
{
"match": {
"type": "value",
"parameter": { "source": "header", "name": "X-Gitlab-Event" },
"value": "Release Hook"
}
},
{
"match": {
"type": "value",
"parameter": { "source": "payload", "name": "action" },
"value": "create"
}
},
{
"match": {
"type": "value",
"parameter": { "source": "header", "name": "X-Gitlab-Token" },
"value": "{{ getenv `PIGEON_GITLAB_SECRET` | js }}"
}
}
]
}
}
]