This commit is contained in:
2026-10-15 01:10:33 -04:00
parent 1b9f8e0b59
commit 3103e4d071
7 changed files with 218 additions and 3 deletions
+36
View File
@@ -0,0 +1,36 @@
{
writeText,
pigeon
}:
writeText "pigeon-hooks.json" (builtins.toJSON [{
id = "release";
execute-command = "${pigeon}";
include-command-output-in-response = false;
pass-arguments-to-command = [
{ source = "payload"; name = "project.git_http_url"; }
{ source = "payload"; name = "project.id"; }
{ source = "payload"; name = "tag"; }
{ source = "payload"; name = "commit.id"; }
];
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_TOKEN` | js }}";
};
}
];
}])