From 173ca2440502a634bd6bce5afaf72be9586ce796 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sun, 1 Aug 2021 13:37:31 +0900 Subject: [PATCH] spec: Make commit field optional 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 | 3 +-- spec/testrequest.json | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/buildrequest.json b/spec/buildrequest.json index 940e869..b4b8067 100644 --- a/spec/buildrequest.json +++ b/spec/buildrequest.json @@ -30,7 +30,6 @@ "required": [ "context", "repository", - "branch", - "commit" + "branch" ] } diff --git a/spec/testrequest.json b/spec/testrequest.json index 83ce716..56c0088 100644 --- a/spec/testrequest.json +++ b/spec/testrequest.json @@ -30,7 +30,6 @@ "required": [ "context", "repository", - "branch", - "commit" + "branch" ] } -- 2.47.3