aboutsummaryrefslogtreecommitdiff
path: root/scripts/laminar
diff options
context:
space:
mode:
authorBonfaceKilz2021-06-22 12:16:54 +0300
committerBonfaceKilz2021-06-22 12:25:11 +0300
commit3cc3cf68c2dcbdc2cd496f8e2728a59fbb6614e6 (patch)
tree57fc1340636d65b6852e14e77d9b7ac45c51d70e /scripts/laminar
parent62c08981d76fa1e9d12407beb0202bdf054e7c7a (diff)
downloadgenenetwork3-3cc3cf68c2dcbdc2cd496f8e2728a59fbb6614e6.tar.gz
scripts: laminar: Add json with hooks for running a linter
Diffstat (limited to 'scripts/laminar')
-rw-r--r--scripts/laminar/hooks.json38
1 files changed, 38 insertions, 0 deletions
diff --git a/scripts/laminar/hooks.json b/scripts/laminar/hooks.json
new file mode 100644
index 0000000..70d8490
--- /dev/null
+++ b/scripts/laminar/hooks.json
@@ -0,0 +1,38 @@
+[
+ {
+ "id": "run-pylint",
+ "execute-command": "$HOME/CI/genenetwork3/scripts/laminar/gn3-lint.sh",
+ "command-working-directory": "$HOME",
+ "response-message": "Running linter...",
+ "trigger-rule":
+ {
+ "and":
+ [
+ {
+ "match":
+ {
+ "type": "payload-hash-sha1",
+ "secret": "Tc7wIOob,O^u",
+ "parameter":
+ {
+ "source": "header",
+ "name": "X-Hub-Signature"
+ }
+ }
+ },
+ {
+ "match":
+ {
+ "type": "value",
+ "value": "refs/heads/master",
+ "parameter":
+ {
+ "source": "payload",
+ "name": "ref"
+ }
+ }
+ }
+ ]
+ }
+ }
+]