GitHub Pull Request Source
Provided by: "Apache Software Foundation"
Support Level for this Kamelet is: "Stable"
Receive pull request From GitHub.
Configuration Options
The following table summarizes the configuration options available for the github-pullrequest-source
Kamelet:
Dependencies
At runtime, the github-pullrequest-source
Kamelet relies upon the presence of the following dependencies:
-
camel:jackson
-
camel:github
-
camel:kamelet
Camel JBang usage
Prerequisites
-
You’ve installed JBang.
-
You have executed the following command:
jbang app install camel@apache/camel
Supposing you have a file named route.yaml with this content:
- route:
from:
uri: "kamelet:github-pullrequest-source"
parameters:
.
.
.
steps:
- to:
uri: "kamelet:log-sink"
You can now run it directly through the following command
camel run route.yaml
GitHub Pull Request Source Kamelet Description
Authentication methods
This Kamelet uses OAuth token-based authentication to connect to GitHub. You need to provide:
-
A valid OAuth token with appropriate repository permissions
-
The repository name and owner information
Output format
The Kamelet produces pull request data in JSON format containing pull request information from the specified GitHub repository.
Configuration
The Kamelet requires the following parameters:
-
repoName
: The GitHub repository name -
repoOwner
: The repository owner (user or organization) -
oauthToken
: OAuth token for authentication
Usage example
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: github-pullrequest-source-binding
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: github-pullrequest-source
properties:
repoName: "my-repository"
repoOwner: "my-organization"
oauthToken: "{{oauth-token}}"
sink:
ref:
kind: Service
apiVersion: v1
name: my-service