]> git.corax.cc Git - foundry/commitdiff
spec: Make commit field optional
authorMatthias Kruk <m@m10k.eu>
Sun, 1 Aug 2021 04:37:31 +0000 (13:37 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 1 Aug 2021 04:37:31 +0000 (13:37 +0900)
The buildrequest and testrequest messages carry a commit property that
is used to specify the exact commit that should be tested. However, it
is not always desirable or possible to specify the exact commit, so
the property should be optional.
This commit removes the property from the list of required properties,
allowing senders to omit the property.

spec/buildrequest.json
spec/testrequest.json

index 940e8690054c7119618c2718db6a4c570dc9154d..b4b8067e1cde28ed1a88cf34aeb4d470a1bad00c 100644 (file)
@@ -30,7 +30,6 @@
     "required": [
        "context",
        "repository",
-       "branch",
-       "commit"
+       "branch"
     ]
 }
index 83ce716bb7ef92f019a8af879e9639ff79f6c698..56c00880eeeec714a3ec2210d07a028ecf2fd822 100644 (file)
@@ -30,7 +30,6 @@
     "required": [
        "context",
        "repository",
-       "branch",
-       "commit"
+       "branch"
     ]
 }