From: Matthias Kruk Date: Sun, 1 Aug 2021 07:27:32 +0000 (+0900) Subject: spec: Remove commit property from all message types (except commit) X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=a37ee5294c889ea60c8563a11e1939eef5f83fe6;p=foundry spec: Remove commit property from all message types (except commit) Handling of the commit property makes the components of foundry more complex without adding tangible value. Therefore it should be removed and added again in case that it really becomes necessary. This commit removes the commit property from all message types but commit messages. --- diff --git a/spec/build.json b/spec/build.json index 7c25456..2a1ea32 100644 --- a/spec/build.json +++ b/spec/build.json @@ -21,12 +21,6 @@ "type": "string" }, - "commit": { - "description": "The commit that uniquely identifies the built sources", - "type": "string", - "pattern": "^[0-9a-fA-F]+$" - }, - "artifacts": { "description": "The files resulting from the build", "type": "array", @@ -41,7 +35,6 @@ "context", "repository", "branch", - "commit", "artifacts" ], diff --git a/spec/buildrequest.json b/spec/buildrequest.json index b4b8067..1bab4e4 100644 --- a/spec/buildrequest.json +++ b/spec/buildrequest.json @@ -18,12 +18,6 @@ "branch": { "description": "Name of the branch that contains the commit to be built", "type": "string" - }, - - "commit": { - "description": "Commit that is to be built", - "type": "string", - "pattern": "^[0-9a-fA-F]+$" } }, diff --git a/spec/distrequest.json b/spec/distrequest.json index e2b77c6..b86724f 100644 --- a/spec/distrequest.json +++ b/spec/distrequest.json @@ -20,11 +20,6 @@ "type": "string" }, - "commit": { - "description": "Commit the artifacts were built from", - "type": "string" - }, - "artifacts": { "description": "List of artifacts built from the source tree", "type": "array", @@ -39,7 +34,6 @@ "context", "repository", "branch", - "commit", "artifacts" ] } diff --git a/spec/test.json b/spec/test.json index c8df495..f5c7d54 100644 --- a/spec/test.json +++ b/spec/test.json @@ -20,11 +20,6 @@ "type": "string" }, - "commit": { - "description": "The commit that was tested", - "type": "string" - }, - "result": { "description": "Result of the test (zero = success, non-zero = failure)", "type": "integer" @@ -35,7 +30,6 @@ "context", "repository", "branch", - "commit", "result" ] } diff --git a/spec/testrequest.json b/spec/testrequest.json index 56c0088..ceb533f 100644 --- a/spec/testrequest.json +++ b/spec/testrequest.json @@ -18,12 +18,6 @@ "branch": { "description": "Name of the branch containing the commit to be tested", "type": "string" - }, - - "commit": { - "description": "Commit that is to be tested", - "type": "string", - "pattern": "^[0-9a-fA-F]+$" } },