]> git.corax.cc Git - foundry/commitdiff
spec: Remove commit property from all message types (except commit)
authorMatthias Kruk <m@m10k.eu>
Sun, 1 Aug 2021 07:27:32 +0000 (16:27 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 1 Aug 2021 07:27:32 +0000 (16:27 +0900)
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.

spec/build.json
spec/buildrequest.json
spec/distrequest.json
spec/test.json
spec/testrequest.json

index 7c2545684a5231c73ee9428f83df32ba82ad38b4..2a1ea3293e1134f7afe1085fcf0012412dbe2ff2 100644 (file)
            "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"
     ],
 
index b4b8067e1cde28ed1a88cf34aeb4d470a1bad00c..1bab4e449b0e7f40b77079d34c5695c4dc5e0265 100644 (file)
        "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]+$"
        }
     },
 
index e2b77c6d3d5e588e347728e544d6fb0d3cdb7482..b86724f0739920dcb868a9cc70623414168e1e08 100644 (file)
            "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"
     ]
 }
index c8df49538a21e5c59da0260c71b78bc3a4f82639..f5c7d543d1de78bbb7263a33a17317a10e60a57e 100644 (file)
            "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"
     ]
 }
index 56c00880eeeec714a3ec2210d07a028ecf2fd822..ceb533f68a8290dfdba369cb06c6ce228f60400f 100644 (file)
        "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]+$"
        }
     },