137 lines
4.8 KiB
JSON
137 lines
4.8 KiB
JSON
{
|
|
"apiVersion": "camel.apache.org/v1",
|
|
"kind": "Kamelet",
|
|
"metadata": {
|
|
"name": "github-commit-source",
|
|
"annotations": {
|
|
"camel.apache.org/kamelet.support.level": "Stable",
|
|
"camel.apache.org/catalog.version": "4.22.1",
|
|
"camel.apache.org/kamelet.icon": "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTggMEMzLjU4IDAgMCAzLjU4IDAgOEMwIDExLjU0IDIuMjkgMTQuNTMgNS40NyAxNS41OUM1Ljg3IDE1LjY2IDYuMDIgMTUuNDIgNi4wMiAxNS4yMUM2LjAyIDE1LjAyIDYuMDEgMTQuMzkgNi4wMSAxMy43MkM0IDE0LjA5IDMuNDggMTMuMjMgMy4zMiAxMi43OEMzLjIzIDEyLjU1IDIuODQgMTEuODQgMi41IDExLjY1QzIuMjIgMTEuNSAxLjgyIDExLjEzIDIuNDkgMTEuMTJDMy4xMiAxMS4xMSAzLjU3IDExLjcgMy43MiAxMS45NEM0LjQ0IDEzLjE1IDUuNTkgMTIuODEgNi4wNSAxMi42QzYuMTIgMTIuMDggNi4zMyAxMS43MyA2LjU2IDExLjUzQzQuNzggMTEuMzMgMi45MiAxMC42NCAyLjkyIDcuNThDMi45MiA2LjcxIDMuMjMgNS45OSAzLjc0IDUuNDNDMy42NiA1LjIzIDMuMzggNC40MSAzLjgyIDMuMzFDMy44MiAzLjMxIDQuNDkgMy4xIDYuMDIgNC4xM0M2LjY2IDMuOTUgNy4zNCAzLjg2IDguMDIgMy44NkM4LjcgMy44NiA5LjM4IDMuOTUgMTAuMDIgNC4xM0MxMS41NSAzLjA5IDEyLjIyIDMuMzEgMTIuMjIgMy4zMUMxMi42NiA0LjQxIDEyLjM4IDUuMjMgMTIuMyA1LjQzQzEyLjgxIDUuOTkgMTMuMTIgNi43IDEzLjEyIDcuNThDMTMuMTIgMTAuNjUgMTEuMjUgMTEuMzMgOS40NyAxMS41M0M5Ljc2IDExLjc4IDEwLjAxIDEyLjI2IDEwLjAxIDEzLjAxQzEwLjAxIDE0LjA4IDEwIDE0Ljk0IDEwIDE1LjIxQzEwIDE1LjQyIDEwLjE1IDE1LjY3IDEwLjU1IDE1LjU5QzEzLjcxIDE0LjUzIDE2IDExLjUzIDE2IDhDMTYgMy41OCAxMi40MiAwIDggMFoiIHRyYW5zZm9ybT0ic2NhbGUoNjQpIiBmaWxsPSIjMUIxRjIzIi8+Cjwvc3ZnPgo=",
|
|
"camel.apache.org/provider": "Apache Software Foundation",
|
|
"camel.apache.org/kamelet.group": "GitHub",
|
|
"camel.apache.org/kamelet.namespace": "Cloud"
|
|
},
|
|
"labels": {
|
|
"camel.apache.org/kamelet.type": "source"
|
|
}
|
|
},
|
|
"spec": {
|
|
"definition": {
|
|
"title": "GitHub Commit Source",
|
|
"description": "Receive commit From GitHub.",
|
|
"required": [
|
|
"repoName",
|
|
"repoOwner",
|
|
"oauthToken",
|
|
"startingSha",
|
|
"branch"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"repoName": {
|
|
"title": "Repository Name",
|
|
"description": "The GitHub Repository name",
|
|
"type": "string"
|
|
},
|
|
"repoOwner": {
|
|
"title": "Repository Owner",
|
|
"description": "The repository owner",
|
|
"type": "string"
|
|
},
|
|
"oauthToken": {
|
|
"title": "OAuth Token",
|
|
"description": "OAuth token",
|
|
"type": "string",
|
|
"format": "password",
|
|
"x-descriptors": [
|
|
"urn:camel:group:credentials"
|
|
]
|
|
},
|
|
"startingSha": {
|
|
"title": "Starting SHA",
|
|
"description": "The SHA from which we want to consume, possible values beginning, last or a specific SHA",
|
|
"type": "string",
|
|
"default": "last"
|
|
},
|
|
"branch": {
|
|
"title": "Branch",
|
|
"description": "The branch we want to consume commit from",
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"types": {
|
|
"out": {
|
|
"mediaType": "application/json"
|
|
}
|
|
},
|
|
"dependencies": [
|
|
"camel:jackson",
|
|
"camel:github2",
|
|
"camel:kamelet"
|
|
],
|
|
"template": {
|
|
"from": {
|
|
"uri": "github2://commit/{{branch}}",
|
|
"parameters": {
|
|
"repoName": "{{repoName}}",
|
|
"repoOwner": "{{repoOwner}}",
|
|
"oauthToken": "{{oauthToken}}",
|
|
"startingSha": "{{startingSha}}"
|
|
},
|
|
"steps": [
|
|
{
|
|
"marshal": {
|
|
"json": {}
|
|
}
|
|
},
|
|
{
|
|
"to": "kamelet:sink"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"propertiesSchema": {
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"type": "object",
|
|
"title": "GitHub Commit Source",
|
|
"description": "Receive commit From GitHub.",
|
|
"required": [
|
|
"repoName",
|
|
"repoOwner",
|
|
"oauthToken",
|
|
"startingSha",
|
|
"branch"
|
|
],
|
|
"properties": {
|
|
"repoName": {
|
|
"type": "string",
|
|
"title": "Repository Name",
|
|
"description": "The GitHub Repository name"
|
|
},
|
|
"repoOwner": {
|
|
"type": "string",
|
|
"title": "Repository Owner",
|
|
"description": "The repository owner"
|
|
},
|
|
"oauthToken": {
|
|
"type": "string",
|
|
"title": "OAuth Token",
|
|
"description": "OAuth token",
|
|
"format": "password"
|
|
},
|
|
"startingSha": {
|
|
"type": "string",
|
|
"title": "Starting SHA",
|
|
"description": "The SHA from which we want to consume, possible values beginning, last or a specific SHA",
|
|
"default": "last"
|
|
},
|
|
"branch": {
|
|
"type": "string",
|
|
"title": "Branch",
|
|
"description": "The branch we want to consume commit from"
|
|
}
|
|
}
|
|
}
|
|
} |