You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2026/02/05 09:46:53 UTC

(camel) branch github-camel-14470 created (now 94d48a7db303)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch github-camel-14470
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 94d48a7db303 CAMEL-14470 - Camel-github2: Introduce a Github component supporting Kohsuke Github-api

This branch includes the following new commits:

     new 94d48a7db303 CAMEL-14470 - Camel-github2: Introduce a Github component supporting Kohsuke Github-api

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: CAMEL-14470 - Camel-github2: Introduce a Github component supporting Kohsuke Github-api

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch github-camel-14470
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 94d48a7db303cc97447abc146a5a76aaa70c1482
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 5 10:33:06 2026 +0100

    CAMEL-14470 - Camel-github2: Introduce a Github component supporting Kohsuke Github-api
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 bom/camel-bom/pom.xml                              |    5 +
 catalog/camel-allcomponents/pom.xml                |    5 +
 .../org/apache/camel/catalog/components.properties |    1 +
 .../apache/camel/catalog/components/github2.json   |   80 ++
 .../org/apache/camel/catalog/others.properties     |    1 +
 .../org/apache/camel/catalog/others/github2.json   |   14 +
 components/camel-github2/pom.xml                   |   58 +
 .../github2/GitHub2ComponentConfigurer.java        |   87 ++
 .../github2/GitHub2EndpointConfigurer.java         |  219 ++++
 .../github2/GitHub2EndpointUriFactory.java         |  106 ++
 .../apache/camel/component/github2/github2.json    |   80 ++
 .../services/org/apache/camel/component.properties |    7 +
 .../services/org/apache/camel/component/github2    |    2 +
 .../org/apache/camel/configurer/github2-component  |    2 +
 .../org/apache/camel/configurer/github2-endpoint   |    2 +
 .../services/org/apache/camel/other.properties     |    7 +
 .../org/apache/camel/urifactory/github2-endpoint   |    2 +
 .../src/generated/resources/github2.json           |   14 +
 .../camel/component/github2/GitHub2Component.java  |   81 ++
 .../camel/component/github2/GitHub2Constants.java  |   45 +
 .../camel/component/github2/GitHub2Endpoint.java   |  289 +++++
 .../camel/component/github2/GitHub2Type.java       |   31 +
 .../component/github2/GitHubClientFactory.java     |   51 +
 .../github2/consumer/AbstractGitHub2Consumer.java  |  101 ++
 .../component/github2/consumer/CommitConsumer.java |  196 +++
 .../component/github2/consumer/EventsConsumer.java |   88 ++
 .../consumer/PullRequestCommentConsumer.java       |   88 ++
 .../github2/consumer/PullRequestConsumer.java      |   87 ++
 .../component/github2/consumer/TagConsumer.java    |   71 ++
 .../github2/event/GitHub2EventFetchStrategy.java   |   38 +
 .../github2/producer/AbstractGitHub2Producer.java  |   78 ++
 .../github2/producer/ClosePullRequestProducer.java |   49 +
 .../github2/producer/CreateIssueProducer.java      |   53 +
 .../github2/producer/GetCommitFileProducer.java    |   77 ++
 .../producer/PullRequestCommentProducer.java       |   56 +
 .../github2/producer/PullRequestFilesProducer.java |   57 +
 .../github2/producer/PullRequestStateProducer.java |   68 +
 .../component/github2/GitHub2ComponentTest.java    |  119 ++
 .../integration/GitHub2ClientFactoryIT.java        |   93 ++
 .../integration/GitHub2CommitConsumerIT.java       |   76 ++
 .../integration/GitHub2IntegrationTestSupport.java |   80 ++
 .../integration/GitHub2PullRequestConsumerIT.java  |   66 +
 .../github2/integration/GitHub2TagConsumerIT.java  |   66 +
 components/pom.xml                                 |    1 +
 .../org/apache/camel/main/components.properties    |    1 +
 .../modules/ROOT/examples/json/github2.json        |    1 +
 .../modules/others/examples/json/github2.json      |    1 +
 .../component/ComponentsBuilderFactory.java        |   13 +
 .../dsl/Github2ComponentBuilderFactory.java        |  222 ++++
 .../builder/endpoint/EndpointBuilderFactory.java   |    1 +
 .../camel/builder/endpoint/EndpointBuilders.java   |    1 +
 .../builder/endpoint/StaticEndpointBuilders.java   |   52 +
 .../dsl/GitHub2EndpointBuilderFactory.java         | 1293 ++++++++++++++++++++
 .../camel-component-known-dependencies.properties  |    1 +
 parent/pom.xml                                     |    7 +
 55 files changed, 4390 insertions(+)

diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index 8f22a0a28b31..7c585a66ef81 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -912,6 +912,11 @@
         <artifactId>camel-github</artifactId>
         <version>4.18.0-SNAPSHOT</version>
       </dependency>
+      <dependency>
+        <groupId>org.apache.camel</groupId>
+        <artifactId>camel-github2</artifactId>
+        <version>4.18.0-SNAPSHOT</version>
+      </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
         <artifactId>camel-google-bigquery</artifactId>
diff --git a/catalog/camel-allcomponents/pom.xml b/catalog/camel-allcomponents/pom.xml
index 42873f008eeb..6f4e0ff76ab3 100644
--- a/catalog/camel-allcomponents/pom.xml
+++ b/catalog/camel-allcomponents/pom.xml
@@ -777,6 +777,11 @@
             <artifactId>camel-github</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-github2</artifactId>
+            <version>${project.version}</version>
+        </dependency>
         <dependency>
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-google-bigquery</artifactId>
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
index 6aaf75259e5f..ab0fb6607a2f 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
@@ -122,6 +122,7 @@ ftps
 geocoder
 git
 github
+github2
 google-bigquery
 google-bigquery-sql
 google-calendar
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/github2.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/github2.json
new file mode 100644
index 000000000000..60cdf1a78900
--- /dev/null
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/github2.json
@@ -0,0 +1,80 @@
+{
+  "component": {
+    "kind": "component",
+    "name": "github2",
+    "title": "GitHub2",
+    "description": "Interact with the GitHub API.",
+    "deprecated": false,
+    "firstVersion": "4.18.0",
+    "label": "file,cloud,api",
+    "javaType": "org.apache.camel.component.github2.GitHub2Component",
+    "supportLevel": "Preview",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-github2",
+    "version": "4.18.0-SNAPSHOT",
+    "scheme": "github2",
+    "extendsScheme": "",
+    "syntax": "github2:type\/branchName",
+    "async": false,
+    "api": false,
+    "consumerOnly": false,
+    "producerOnly": false,
+    "lenientProperties": false,
+    "browsable": false,
+    "remote": true
+  },
+  "componentProperties": {
+    "bridgeErrorHandler": { "index": 0, "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the like [...]
+    "lazyStartProducer": { "index": 1, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...]
+    "apiUrl": { "index": 2, "kind": "property", "displayName": "Api Url", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "GitHub API URL for GitHub Enterprise. Leave empty for github.com." },
+    "autowiredEnabled": { "index": 3, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...]
+    "healthCheckConsumerEnabled": { "index": 4, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" },
+    "healthCheckProducerEnabled": { "index": 5, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer [...]
+    "oauthToken": { "index": 6, "kind": "property", "displayName": "Oauth Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "description": "GitHub OAuth token. Must be configured on either component or endpoint." }
+  },
+  "headers": {
+    "GitHubPullRequest": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "org.kohsuke.github.GHPullRequest or Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The pull request", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_PULLREQUEST" },
+    "GitHubInResponseTo": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the comment to reply to", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_INRESPONSETO" },
+    "GitHubPullRequestHeadCommitSHA": { "index": 2, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The sha of the head of the pull request", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_PULLREQUEST_HEAD_COMMIT_SHA" },
+    "GitHubIssueTitle": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The title of the issue", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_ISSUE_TITLE" },
+    "CamelGitHubCommitAuthor": { "index": 4, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The commit author", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_COMMIT_AUTHOR" },
+    "CamelGitHubCommitCommitter": { "index": 5, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The committer name", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_COMMIT_COMMITTER" },
+    "CamelGitHubCommitSha": { "index": 6, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The commit sha", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_COMMIT_SHA" },
+    "CamelGitHubCommitUrl": { "index": 7, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The commit URL", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_COMMIT_URL" },
+    "CamelGitHubEventPayload": { "index": 8, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "org.kohsuke.github.GHEventPayload", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The event payload", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_EVENT_PAYLOAD" }
+  },
+  "properties": {
+    "type": { "index": 0, "kind": "path", "displayName": "Type", "group": "common", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.github2.GitHub2Type", "enum": [ "CLOSEPULLREQUEST", "PULLREQUESTCOMMENT", "COMMIT", "PULLREQUEST", "TAG", "PULLREQUESTSTATE", "PULLREQUESTFILES", "GETCOMMITFILE", "CREATEISSUE", "EVENT" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "What git operation to execute" },
+    "branchName": { "index": 1, "kind": "path", "displayName": "Branch Name", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Name of branch" },
+    "repoName": { "index": 2, "kind": "parameter", "displayName": "Repo Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "GitHub repository name" },
+    "repoOwner": { "index": 3, "kind": "parameter", "displayName": "Repo Owner", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "GitHub repository owner (organization)" },
+    "commitMessageAsBody": { "index": 4, "kind": "parameter", "displayName": "Commit Message As Body", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the commit consumer should store the commit message or the raw org.kohsuke.github.GHCommit object as the message body." },
+    "sendEmptyMessageWhenIdle": { "index": 5, "kind": "parameter", "displayName": "Send Empty Message When Idle", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead." },
+    "startingSha": { "index": 6, "kind": "parameter", "displayName": "Starting Sha", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "last", "description": "The starting sha to use for polling commits with the commit consumer. The value can either be a sha for the sha to start from, or use beginning to start from the beginning, or last to start from the [...]
+    "bridgeErrorHandler": { "index": 7, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming  [...]
+    "eventFetchStrategy": { "index": 8, "kind": "parameter", "displayName": "Event Fetch Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.github2.event.GitHub2EventFetchStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To specify a custom strategy that configures how the EventsConsumer fetches events." },
+    "exceptionHandler": { "index": 9, "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By def [...]
+    "exchangePattern": { "index": 10, "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "enum", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." },
+    "pollStrategy": { "index": 11, "kind": "parameter", "displayName": "Poll Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the po [...]
+    "encoding": { "index": 12, "kind": "parameter", "displayName": "Encoding", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To use the given encoding when getting a git commit file" },
+    "state": { "index": 13, "kind": "parameter", "displayName": "State", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "error", "failure", "pending", "success" ], "deprecated": false, "autowired": false, "secret": false, "description": "To set git commit status state" },
+    "targetUrl": { "index": 14, "kind": "parameter", "displayName": "Target Url", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To set git commit status target url" },
+    "lazyStartProducer": { "index": 15, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produ [...]
+    "apiUrl": { "index": 16, "kind": "parameter", "displayName": "Api Url", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "GitHub API URL for GitHub Enterprise. Leave empty for github.com." },
+    "backoffErrorThreshold": { "index": 17, "kind": "parameter", "displayName": "Backoff Error Threshold", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in." },
+    "backoffIdleThreshold": { "index": 18, "kind": "parameter", "displayName": "Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The number of subsequent idle polls that should happen before the backoffMultipler should kick-in." },
+    "backoffMultiplier": { "index": 19, "kind": "parameter", "displayName": "Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "To let the scheduled polling consumer backoff if there has been a number of subsequent idles\/errors in a row. The multiplier is then the number of polls that will be skipped before the next actual attempt is h [...]
+    "delay": { "index": 20, "kind": "parameter", "displayName": "Delay", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 500, "description": "Milliseconds before the next poll." },
+    "greedy": { "index": 21, "kind": "parameter", "displayName": "Greedy", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If greedy is enabled, then the ScheduledPollConsumer will run immediately again, if the previous run polled 1 or more messages." },
+    "initialDelay": { "index": 22, "kind": "parameter", "displayName": "Initial Delay", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, "description": "Milliseconds before the first poll starts." },
+    "repeatCount": { "index": 23, "kind": "parameter", "displayName": "Repeat Count", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 0, "description": "Specifies a maximum limit of number of fires. So if you set it to 1, the scheduler will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever." },
+    "runLoggingLevel": { "index": 24, "kind": "parameter", "displayName": "Run Logging Level", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", "enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "TRACE", "description": "The consumer logs a start\/complete log line when it polls. This option allows you to configure the log [...]
+    "scheduledExecutorService": { "index": 25, "kind": "parameter", "displayName": "Scheduled Executor Service", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "object", "javaType": "java.util.concurrent.ScheduledExecutorService", "deprecated": false, "autowired": false, "secret": false, "description": "Allows for configuring a custom\/shared thread pool to use for the consumer. By default each consumer has its own single threaded thread pool." },
+    "scheduler": { "index": 26, "kind": "parameter", "displayName": "Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "none", "description": "To use a cron scheduler from either camel-spring or camel-quartz component. Use value spring or quartz for built in scheduler" },
+    "schedulerProperties": { "index": 27, "kind": "parameter", "displayName": "Scheduler Properties", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.Object>", "prefix": "scheduler.", "multiValue": true, "deprecated": false, "autowired": false, "secret": false, "description": "To configure additional properties when using a custom scheduler or any of the Quartz, Spring based scheduler. This i [...]
+    "startScheduler": { "index": 28, "kind": "parameter", "displayName": "Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the scheduler should be auto started." },
+    "timeUnit": { "index": 29, "kind": "parameter", "displayName": "Time Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and delay options." },
+    "useFixedDelay": { "index": 30, "kind": "parameter", "displayName": "Use Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in JDK for details." },
+    "oauthToken": { "index": 31, "kind": "parameter", "displayName": "Oauth Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "description": "GitHub OAuth token. Must be configured on either component or endpoint." }
+  }
+}
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties
index 9d606794d7d9..c3cb3ad8148a 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others.properties
@@ -13,6 +13,7 @@ debug
 dsl-modeline
 elytron
 endpointdsl
+github2
 headersmap
 health
 jandex
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/github2.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/github2.json
new file mode 100644
index 000000000000..969a4e849b5c
--- /dev/null
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/others/github2.json
@@ -0,0 +1,14 @@
+{
+  "other": {
+    "kind": "other",
+    "name": "github2",
+    "title": "Github2",
+    "description": "Interact with the GitHub API using kohsuke github-api library",
+    "deprecated": false,
+    "firstVersion": "4.18.0",
+    "supportLevel": "Preview",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-github2",
+    "version": "4.18.0-SNAPSHOT"
+  }
+}
diff --git a/components/camel-github2/pom.xml b/components/camel-github2/pom.xml
new file mode 100644
index 000000000000..d3329d0807d6
--- /dev/null
+++ b/components/camel-github2/pom.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.camel</groupId>
+        <artifactId>components</artifactId>
+        <version>4.18.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>camel-github2</artifactId>
+    <packaging>jar</packaging>
+    <name>Camel :: GitHub2</name>
+    <description>Interact with the GitHub API using kohsuke github-api library</description>
+
+    <properties>
+        <firstVersion>4.18.0</firstVersion>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-support</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.kohsuke</groupId>
+            <artifactId>github-api</artifactId>
+            <version>${github-api-version}</version>
+        </dependency>
+
+        <!-- testing -->
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-test-junit5</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+</project>
diff --git a/components/camel-github2/src/generated/java/org/apache/camel/component/github2/GitHub2ComponentConfigurer.java b/components/camel-github2/src/generated/java/org/apache/camel/component/github2/GitHub2ComponentConfigurer.java
new file mode 100644
index 000000000000..60bada54f64c
--- /dev/null
+++ b/components/camel-github2/src/generated/java/org/apache/camel/component/github2/GitHub2ComponentConfigurer.java
@@ -0,0 +1,87 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.github2;
+
+import javax.annotation.processing.Generated;
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.support.component.PropertyConfigurerSupport;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
+@SuppressWarnings("unchecked")
+public class GitHub2ComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+    @Override
+    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+        GitHub2Component target = (GitHub2Component) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "apiurl":
+        case "apiUrl": target.setApiUrl(property(camelContext, java.lang.String.class, value)); return true;
+        case "autowiredenabled":
+        case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
+        case "healthcheckconsumerenabled":
+        case "healthCheckConsumerEnabled": target.setHealthCheckConsumerEnabled(property(camelContext, boolean.class, value)); return true;
+        case "healthcheckproducerenabled":
+        case "healthCheckProducerEnabled": target.setHealthCheckProducerEnabled(property(camelContext, boolean.class, value)); return true;
+        case "lazystartproducer":
+        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
+        case "oauthtoken":
+        case "oauthToken": target.setOauthToken(property(camelContext, java.lang.String.class, value)); return true;
+        default: return false;
+        }
+    }
+
+    @Override
+    public Class<?> getOptionType(String name, boolean ignoreCase) {
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "apiurl":
+        case "apiUrl": return java.lang.String.class;
+        case "autowiredenabled":
+        case "autowiredEnabled": return boolean.class;
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": return boolean.class;
+        case "healthcheckconsumerenabled":
+        case "healthCheckConsumerEnabled": return boolean.class;
+        case "healthcheckproducerenabled":
+        case "healthCheckProducerEnabled": return boolean.class;
+        case "lazystartproducer":
+        case "lazyStartProducer": return boolean.class;
+        case "oauthtoken":
+        case "oauthToken": return java.lang.String.class;
+        default: return null;
+        }
+    }
+
+    @Override
+    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+        GitHub2Component target = (GitHub2Component) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "apiurl":
+        case "apiUrl": return target.getApiUrl();
+        case "autowiredenabled":
+        case "autowiredEnabled": return target.isAutowiredEnabled();
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
+        case "healthcheckconsumerenabled":
+        case "healthCheckConsumerEnabled": return target.isHealthCheckConsumerEnabled();
+        case "healthcheckproducerenabled":
+        case "healthCheckProducerEnabled": return target.isHealthCheckProducerEnabled();
+        case "lazystartproducer":
+        case "lazyStartProducer": return target.isLazyStartProducer();
+        case "oauthtoken":
+        case "oauthToken": return target.getOauthToken();
+        default: return null;
+        }
+    }
+}
+
diff --git a/components/camel-github2/src/generated/java/org/apache/camel/component/github2/GitHub2EndpointConfigurer.java b/components/camel-github2/src/generated/java/org/apache/camel/component/github2/GitHub2EndpointConfigurer.java
new file mode 100644
index 000000000000..49c1cf60d442
--- /dev/null
+++ b/components/camel-github2/src/generated/java/org/apache/camel/component/github2/GitHub2EndpointConfigurer.java
@@ -0,0 +1,219 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.github2;
+
+import javax.annotation.processing.Generated;
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.support.component.PropertyConfigurerSupport;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
+@SuppressWarnings("unchecked")
+public class GitHub2EndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+    @Override
+    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+        GitHub2Endpoint target = (GitHub2Endpoint) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "apiurl":
+        case "apiUrl": target.setApiUrl(property(camelContext, java.lang.String.class, value)); return true;
+        case "backofferrorthreshold":
+        case "backoffErrorThreshold": target.setBackoffErrorThreshold(property(camelContext, int.class, value)); return true;
+        case "backoffidlethreshold":
+        case "backoffIdleThreshold": target.setBackoffIdleThreshold(property(camelContext, int.class, value)); return true;
+        case "backoffmultiplier":
+        case "backoffMultiplier": target.setBackoffMultiplier(property(camelContext, int.class, value)); return true;
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
+        case "commitmessageasbody":
+        case "commitMessageAsBody": target.setCommitMessageAsBody(property(camelContext, boolean.class, value)); return true;
+        case "delay": target.setDelay(property(camelContext, long.class, value)); return true;
+        case "encoding": target.setEncoding(property(camelContext, java.lang.String.class, value)); return true;
+        case "eventfetchstrategy":
+        case "eventFetchStrategy": target.setEventFetchStrategy(property(camelContext, org.apache.camel.component.github2.event.GitHub2EventFetchStrategy.class, value)); return true;
+        case "exceptionhandler":
+        case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
+        case "exchangepattern":
+        case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
+        case "greedy": target.setGreedy(property(camelContext, boolean.class, value)); return true;
+        case "initialdelay":
+        case "initialDelay": target.setInitialDelay(property(camelContext, long.class, value)); return true;
+        case "lazystartproducer":
+        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
+        case "oauthtoken":
+        case "oauthToken": target.setOauthToken(property(camelContext, java.lang.String.class, value)); return true;
+        case "pollstrategy":
+        case "pollStrategy": target.setPollStrategy(property(camelContext, org.apache.camel.spi.PollingConsumerPollStrategy.class, value)); return true;
+        case "repeatcount":
+        case "repeatCount": target.setRepeatCount(property(camelContext, long.class, value)); return true;
+        case "reponame":
+        case "repoName": target.setRepoName(property(camelContext, java.lang.String.class, value)); return true;
+        case "repoowner":
+        case "repoOwner": target.setRepoOwner(property(camelContext, java.lang.String.class, value)); return true;
+        case "runlogginglevel":
+        case "runLoggingLevel": target.setRunLoggingLevel(property(camelContext, org.apache.camel.LoggingLevel.class, value)); return true;
+        case "scheduledexecutorservice":
+        case "scheduledExecutorService": target.setScheduledExecutorService(property(camelContext, java.util.concurrent.ScheduledExecutorService.class, value)); return true;
+        case "scheduler": target.setScheduler(property(camelContext, java.lang.Object.class, value)); return true;
+        case "schedulerproperties":
+        case "schedulerProperties": target.setSchedulerProperties(property(camelContext, java.util.Map.class, value)); return true;
+        case "sendemptymessagewhenidle":
+        case "sendEmptyMessageWhenIdle": target.setSendEmptyMessageWhenIdle(property(camelContext, boolean.class, value)); return true;
+        case "startscheduler":
+        case "startScheduler": target.setStartScheduler(property(camelContext, boolean.class, value)); return true;
+        case "startingsha":
+        case "startingSha": target.setStartingSha(property(camelContext, java.lang.String.class, value)); return true;
+        case "state": target.setState(property(camelContext, java.lang.String.class, value)); return true;
+        case "targeturl":
+        case "targetUrl": target.setTargetUrl(property(camelContext, java.lang.String.class, value)); return true;
+        case "timeunit":
+        case "timeUnit": target.setTimeUnit(property(camelContext, java.util.concurrent.TimeUnit.class, value)); return true;
+        case "usefixeddelay":
+        case "useFixedDelay": target.setUseFixedDelay(property(camelContext, boolean.class, value)); return true;
+        default: return false;
+        }
+    }
+
+    @Override
+    public Class<?> getOptionType(String name, boolean ignoreCase) {
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "apiurl":
+        case "apiUrl": return java.lang.String.class;
+        case "backofferrorthreshold":
+        case "backoffErrorThreshold": return int.class;
+        case "backoffidlethreshold":
+        case "backoffIdleThreshold": return int.class;
+        case "backoffmultiplier":
+        case "backoffMultiplier": return int.class;
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": return boolean.class;
+        case "commitmessageasbody":
+        case "commitMessageAsBody": return boolean.class;
+        case "delay": return long.class;
+        case "encoding": return java.lang.String.class;
+        case "eventfetchstrategy":
+        case "eventFetchStrategy": return org.apache.camel.component.github2.event.GitHub2EventFetchStrategy.class;
+        case "exceptionhandler":
+        case "exceptionHandler": return org.apache.camel.spi.ExceptionHandler.class;
+        case "exchangepattern":
+        case "exchangePattern": return org.apache.camel.ExchangePattern.class;
+        case "greedy": return boolean.class;
+        case "initialdelay":
+        case "initialDelay": return long.class;
+        case "lazystartproducer":
+        case "lazyStartProducer": return boolean.class;
+        case "oauthtoken":
+        case "oauthToken": return java.lang.String.class;
+        case "pollstrategy":
+        case "pollStrategy": return org.apache.camel.spi.PollingConsumerPollStrategy.class;
+        case "repeatcount":
+        case "repeatCount": return long.class;
+        case "reponame":
+        case "repoName": return java.lang.String.class;
+        case "repoowner":
+        case "repoOwner": return java.lang.String.class;
+        case "runlogginglevel":
+        case "runLoggingLevel": return org.apache.camel.LoggingLevel.class;
+        case "scheduledexecutorservice":
+        case "scheduledExecutorService": return java.util.concurrent.ScheduledExecutorService.class;
+        case "scheduler": return java.lang.Object.class;
+        case "schedulerproperties":
+        case "schedulerProperties": return java.util.Map.class;
+        case "sendemptymessagewhenidle":
+        case "sendEmptyMessageWhenIdle": return boolean.class;
+        case "startscheduler":
+        case "startScheduler": return boolean.class;
+        case "startingsha":
+        case "startingSha": return java.lang.String.class;
+        case "state": return java.lang.String.class;
+        case "targeturl":
+        case "targetUrl": return java.lang.String.class;
+        case "timeunit":
+        case "timeUnit": return java.util.concurrent.TimeUnit.class;
+        case "usefixeddelay":
+        case "useFixedDelay": return boolean.class;
+        default: return null;
+        }
+    }
+
+    @Override
+    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+        GitHub2Endpoint target = (GitHub2Endpoint) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "apiurl":
+        case "apiUrl": return target.getApiUrl();
+        case "backofferrorthreshold":
+        case "backoffErrorThreshold": return target.getBackoffErrorThreshold();
+        case "backoffidlethreshold":
+        case "backoffIdleThreshold": return target.getBackoffIdleThreshold();
+        case "backoffmultiplier":
+        case "backoffMultiplier": return target.getBackoffMultiplier();
+        case "bridgeerrorhandler":
+        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
+        case "commitmessageasbody":
+        case "commitMessageAsBody": return target.isCommitMessageAsBody();
+        case "delay": return target.getDelay();
+        case "encoding": return target.getEncoding();
+        case "eventfetchstrategy":
+        case "eventFetchStrategy": return target.getEventFetchStrategy();
+        case "exceptionhandler":
+        case "exceptionHandler": return target.getExceptionHandler();
+        case "exchangepattern":
+        case "exchangePattern": return target.getExchangePattern();
+        case "greedy": return target.isGreedy();
+        case "initialdelay":
+        case "initialDelay": return target.getInitialDelay();
+        case "lazystartproducer":
+        case "lazyStartProducer": return target.isLazyStartProducer();
+        case "oauthtoken":
+        case "oauthToken": return target.getOauthToken();
+        case "pollstrategy":
+        case "pollStrategy": return target.getPollStrategy();
+        case "repeatcount":
+        case "repeatCount": return target.getRepeatCount();
+        case "reponame":
+        case "repoName": return target.getRepoName();
+        case "repoowner":
+        case "repoOwner": return target.getRepoOwner();
+        case "runlogginglevel":
+        case "runLoggingLevel": return target.getRunLoggingLevel();
+        case "scheduledexecutorservice":
+        case "scheduledExecutorService": return target.getScheduledExecutorService();
+        case "scheduler": return target.getScheduler();
+        case "schedulerproperties":
+        case "schedulerProperties": return target.getSchedulerProperties();
+        case "sendemptymessagewhenidle":
+        case "sendEmptyMessageWhenIdle": return target.isSendEmptyMessageWhenIdle();
+        case "startscheduler":
+        case "startScheduler": return target.isStartScheduler();
+        case "startingsha":
+        case "startingSha": return target.getStartingSha();
+        case "state": return target.getState();
+        case "targeturl":
+        case "targetUrl": return target.getTargetUrl();
+        case "timeunit":
+        case "timeUnit": return target.getTimeUnit();
+        case "usefixeddelay":
+        case "useFixedDelay": return target.isUseFixedDelay();
+        default: return null;
+        }
+    }
+
+    @Override
+    public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "schedulerproperties":
+        case "schedulerProperties": return java.lang.Object.class;
+        default: return null;
+        }
+    }
+}
+
diff --git a/components/camel-github2/src/generated/java/org/apache/camel/component/github2/GitHub2EndpointUriFactory.java b/components/camel-github2/src/generated/java/org/apache/camel/component/github2/GitHub2EndpointUriFactory.java
new file mode 100644
index 000000000000..68cf41b69138
--- /dev/null
+++ b/components/camel-github2/src/generated/java/org/apache/camel/component/github2/GitHub2EndpointUriFactory.java
@@ -0,0 +1,106 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.github2;
+
+import javax.annotation.processing.Generated;
+import java.net.URISyntaxException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.camel.spi.EndpointUriFactory;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.GenerateEndpointUriFactoryMojo")
+public class GitHub2EndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
+
+    private static final String BASE = ":type/branchName";
+
+    private static final Set<String> PROPERTY_NAMES;
+    private static final Set<String> SECRET_PROPERTY_NAMES;
+    private static final Map<String, String> MULTI_VALUE_PREFIXES;
+    static {
+        Set<String> props = new HashSet<>(32);
+        props.add("apiUrl");
+        props.add("backoffErrorThreshold");
+        props.add("backoffIdleThreshold");
+        props.add("backoffMultiplier");
+        props.add("branchName");
+        props.add("bridgeErrorHandler");
+        props.add("commitMessageAsBody");
+        props.add("delay");
+        props.add("encoding");
+        props.add("eventFetchStrategy");
+        props.add("exceptionHandler");
+        props.add("exchangePattern");
+        props.add("greedy");
+        props.add("initialDelay");
+        props.add("lazyStartProducer");
+        props.add("oauthToken");
+        props.add("pollStrategy");
+        props.add("repeatCount");
+        props.add("repoName");
+        props.add("repoOwner");
+        props.add("runLoggingLevel");
+        props.add("scheduledExecutorService");
+        props.add("scheduler");
+        props.add("schedulerProperties");
+        props.add("sendEmptyMessageWhenIdle");
+        props.add("startScheduler");
+        props.add("startingSha");
+        props.add("state");
+        props.add("targetUrl");
+        props.add("timeUnit");
+        props.add("type");
+        props.add("useFixedDelay");
+        PROPERTY_NAMES = Collections.unmodifiableSet(props);
+        Set<String> secretProps = new HashSet<>(1);
+        secretProps.add("oauthToken");
+        SECRET_PROPERTY_NAMES = Collections.unmodifiableSet(secretProps);
+        Map<String, String> prefixes = new HashMap<>(1);
+        prefixes.put("schedulerProperties", "scheduler.");
+        MULTI_VALUE_PREFIXES = Collections.unmodifiableMap(prefixes);
+    }
+
+    @Override
+    public boolean isEnabled(String scheme) {
+        return "github2".equals(scheme);
+    }
+
+    @Override
+    public String buildUri(String scheme, Map<String, Object> properties, boolean encode) throws URISyntaxException {
+        String syntax = scheme + BASE;
+        String uri = syntax;
+
+        Map<String, Object> copy = new HashMap<>(properties);
+
+        uri = buildPathParameter(syntax, uri, "type", null, true, copy);
+        uri = buildPathParameter(syntax, uri, "branchName", null, false, copy);
+        uri = buildQueryParameters(uri, copy, encode);
+        return uri;
+    }
+
+    @Override
+    public Set<String> propertyNames() {
+        return PROPERTY_NAMES;
+    }
+
+    @Override
+    public Set<String> secretPropertyNames() {
+        return SECRET_PROPERTY_NAMES;
+    }
+
+    @Override
+    public Map<String, String> multiValuePrefixes() {
+        return MULTI_VALUE_PREFIXES;
+    }
+
+    @Override
+    public boolean isLenientProperties() {
+        return false;
+    }
+}
+
diff --git a/components/camel-github2/src/generated/resources/META-INF/org/apache/camel/component/github2/github2.json b/components/camel-github2/src/generated/resources/META-INF/org/apache/camel/component/github2/github2.json
new file mode 100644
index 000000000000..60cdf1a78900
--- /dev/null
+++ b/components/camel-github2/src/generated/resources/META-INF/org/apache/camel/component/github2/github2.json
@@ -0,0 +1,80 @@
+{
+  "component": {
+    "kind": "component",
+    "name": "github2",
+    "title": "GitHub2",
+    "description": "Interact with the GitHub API.",
+    "deprecated": false,
+    "firstVersion": "4.18.0",
+    "label": "file,cloud,api",
+    "javaType": "org.apache.camel.component.github2.GitHub2Component",
+    "supportLevel": "Preview",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-github2",
+    "version": "4.18.0-SNAPSHOT",
+    "scheme": "github2",
+    "extendsScheme": "",
+    "syntax": "github2:type\/branchName",
+    "async": false,
+    "api": false,
+    "consumerOnly": false,
+    "producerOnly": false,
+    "lenientProperties": false,
+    "browsable": false,
+    "remote": true
+  },
+  "componentProperties": {
+    "bridgeErrorHandler": { "index": 0, "kind": "property", "displayName": "Bridge Error Handler", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming messages, or the like [...]
+    "lazyStartProducer": { "index": 1, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...]
+    "apiUrl": { "index": 2, "kind": "property", "displayName": "Api Url", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "GitHub API URL for GitHub Enterprise. Leave empty for github.com." },
+    "autowiredEnabled": { "index": 3, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching t [...]
+    "healthCheckConsumerEnabled": { "index": 4, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" },
+    "healthCheckProducerEnabled": { "index": 5, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on producer [...]
+    "oauthToken": { "index": 6, "kind": "property", "displayName": "Oauth Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "description": "GitHub OAuth token. Must be configured on either component or endpoint." }
+  },
+  "headers": {
+    "GitHubPullRequest": { "index": 0, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "org.kohsuke.github.GHPullRequest or Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The pull request", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_PULLREQUEST" },
+    "GitHubInResponseTo": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the comment to reply to", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_INRESPONSETO" },
+    "GitHubPullRequestHeadCommitSHA": { "index": 2, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The sha of the head of the pull request", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_PULLREQUEST_HEAD_COMMIT_SHA" },
+    "GitHubIssueTitle": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The title of the issue", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_ISSUE_TITLE" },
+    "CamelGitHubCommitAuthor": { "index": 4, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The commit author", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_COMMIT_AUTHOR" },
+    "CamelGitHubCommitCommitter": { "index": 5, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The committer name", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_COMMIT_COMMITTER" },
+    "CamelGitHubCommitSha": { "index": 6, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The commit sha", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_COMMIT_SHA" },
+    "CamelGitHubCommitUrl": { "index": 7, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The commit URL", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_COMMIT_URL" },
+    "CamelGitHubEventPayload": { "index": 8, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "org.kohsuke.github.GHEventPayload", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The event payload", "constantName": "org.apache.camel.component.github2.GitHub2Constants#GITHUB_EVENT_PAYLOAD" }
+  },
+  "properties": {
+    "type": { "index": 0, "kind": "path", "displayName": "Type", "group": "common", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.github2.GitHub2Type", "enum": [ "CLOSEPULLREQUEST", "PULLREQUESTCOMMENT", "COMMIT", "PULLREQUEST", "TAG", "PULLREQUESTSTATE", "PULLREQUESTFILES", "GETCOMMITFILE", "CREATEISSUE", "EVENT" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "What git operation to execute" },
+    "branchName": { "index": 1, "kind": "path", "displayName": "Branch Name", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Name of branch" },
+    "repoName": { "index": 2, "kind": "parameter", "displayName": "Repo Name", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "GitHub repository name" },
+    "repoOwner": { "index": 3, "kind": "parameter", "displayName": "Repo Owner", "group": "common", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "GitHub repository owner (organization)" },
+    "commitMessageAsBody": { "index": 4, "kind": "parameter", "displayName": "Commit Message As Body", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the commit consumer should store the commit message or the raw org.kohsuke.github.GHCommit object as the message body." },
+    "sendEmptyMessageWhenIdle": { "index": 5, "kind": "parameter", "displayName": "Send Empty Message When Idle", "group": "consumer", "label": "consumer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If the polling consumer did not poll any files, you can enable this option to send an empty message (no body) instead." },
+    "startingSha": { "index": 6, "kind": "parameter", "displayName": "Starting Sha", "group": "consumer", "label": "consumer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "last", "description": "The starting sha to use for polling commits with the commit consumer. The value can either be a sha for the sha to start from, or use beginning to start from the beginning, or last to start from the [...]
+    "bridgeErrorHandler": { "index": 7, "kind": "parameter", "displayName": "Bridge Error Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions (if possible) occurred while the Camel consumer is trying to pickup incoming  [...]
+    "eventFetchStrategy": { "index": 8, "kind": "parameter", "displayName": "Event Fetch Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.component.github2.event.GitHub2EventFetchStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "To specify a custom strategy that configures how the EventsConsumer fetches events." },
+    "exceptionHandler": { "index": 9, "kind": "parameter", "displayName": "Exception Handler", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.ExceptionHandler", "optionalPrefix": "consumer.", "deprecated": false, "autowired": false, "secret": false, "description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By def [...]
+    "exchangePattern": { "index": 10, "kind": "parameter", "displayName": "Exchange Pattern", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "enum", "javaType": "org.apache.camel.ExchangePattern", "enum": [ "InOnly", "InOut" ], "deprecated": false, "autowired": false, "secret": false, "description": "Sets the exchange pattern when the consumer creates an exchange." },
+    "pollStrategy": { "index": 11, "kind": "parameter", "displayName": "Poll Strategy", "group": "consumer (advanced)", "label": "consumer,advanced", "required": false, "type": "object", "javaType": "org.apache.camel.spi.PollingConsumerPollStrategy", "deprecated": false, "autowired": false, "secret": false, "description": "A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing you to provide your custom implementation to control error handling usually occurred during the po [...]
+    "encoding": { "index": 12, "kind": "parameter", "displayName": "Encoding", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To use the given encoding when getting a git commit file" },
+    "state": { "index": 13, "kind": "parameter", "displayName": "State", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "error", "failure", "pending", "success" ], "deprecated": false, "autowired": false, "secret": false, "description": "To set git commit status state" },
+    "targetUrl": { "index": 14, "kind": "parameter", "displayName": "Target Url", "group": "producer", "label": "producer", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "To set git commit status target url" },
+    "lazyStartProducer": { "index": 15, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produ [...]
+    "apiUrl": { "index": 16, "kind": "parameter", "displayName": "Api Url", "group": "advanced", "label": "advanced", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "GitHub API URL for GitHub Enterprise. Leave empty for github.com." },
+    "backoffErrorThreshold": { "index": 17, "kind": "parameter", "displayName": "Backoff Error Threshold", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The number of subsequent error polls (failed due some error) that should happen before the backoffMultipler should kick-in." },
+    "backoffIdleThreshold": { "index": 18, "kind": "parameter", "displayName": "Backoff Idle Threshold", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "The number of subsequent idle polls that should happen before the backoffMultipler should kick-in." },
+    "backoffMultiplier": { "index": 19, "kind": "parameter", "displayName": "Backoff Multiplier", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "int", "deprecated": false, "autowired": false, "secret": false, "description": "To let the scheduled polling consumer backoff if there has been a number of subsequent idles\/errors in a row. The multiplier is then the number of polls that will be skipped before the next actual attempt is h [...]
+    "delay": { "index": 20, "kind": "parameter", "displayName": "Delay", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 500, "description": "Milliseconds before the next poll." },
+    "greedy": { "index": 21, "kind": "parameter", "displayName": "Greedy", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "If greedy is enabled, then the ScheduledPollConsumer will run immediately again, if the previous run polled 1 or more messages." },
+    "initialDelay": { "index": 22, "kind": "parameter", "displayName": "Initial Delay", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 1000, "description": "Milliseconds before the first poll starts." },
+    "repeatCount": { "index": 23, "kind": "parameter", "displayName": "Repeat Count", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "integer", "javaType": "long", "deprecated": false, "autowired": false, "secret": false, "defaultValue": 0, "description": "Specifies a maximum limit of number of fires. So if you set it to 1, the scheduler will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever." },
+    "runLoggingLevel": { "index": 24, "kind": "parameter", "displayName": "Run Logging Level", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "enum", "javaType": "org.apache.camel.LoggingLevel", "enum": [ "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "OFF" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "TRACE", "description": "The consumer logs a start\/complete log line when it polls. This option allows you to configure the log [...]
+    "scheduledExecutorService": { "index": 25, "kind": "parameter", "displayName": "Scheduled Executor Service", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "object", "javaType": "java.util.concurrent.ScheduledExecutorService", "deprecated": false, "autowired": false, "secret": false, "description": "Allows for configuring a custom\/shared thread pool to use for the consumer. By default each consumer has its own single threaded thread pool." },
+    "scheduler": { "index": 26, "kind": "parameter", "displayName": "Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "object", "javaType": "java.lang.Object", "deprecated": false, "autowired": false, "secret": false, "defaultValue": "none", "description": "To use a cron scheduler from either camel-spring or camel-quartz component. Use value spring or quartz for built in scheduler" },
+    "schedulerProperties": { "index": 27, "kind": "parameter", "displayName": "Scheduler Properties", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "object", "javaType": "java.util.Map<java.lang.String, java.lang.Object>", "prefix": "scheduler.", "multiValue": true, "deprecated": false, "autowired": false, "secret": false, "description": "To configure additional properties when using a custom scheduler or any of the Quartz, Spring based scheduler. This i [...]
+    "startScheduler": { "index": 28, "kind": "parameter", "displayName": "Start Scheduler", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether the scheduler should be auto started." },
+    "timeUnit": { "index": 29, "kind": "parameter", "displayName": "Time Unit", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "enum", "javaType": "java.util.concurrent.TimeUnit", "enum": [ "NANOSECONDS", "MICROSECONDS", "MILLISECONDS", "SECONDS", "MINUTES", "HOURS", "DAYS" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "MILLISECONDS", "description": "Time unit for initialDelay and delay options." },
+    "useFixedDelay": { "index": 30, "kind": "parameter", "displayName": "Use Fixed Delay", "group": "scheduler", "label": "consumer,scheduler", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Controls if fixed delay or fixed rate is used. See ScheduledExecutorService in JDK for details." },
+    "oauthToken": { "index": 31, "kind": "parameter", "displayName": "Oauth Token", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "description": "GitHub OAuth token. Must be configured on either component or endpoint." }
+  }
+}
diff --git a/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/component.properties b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/component.properties
new file mode 100644
index 000000000000..5ffb23e03d31
--- /dev/null
+++ b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/component.properties
@@ -0,0 +1,7 @@
+# Generated by camel build tools - do NOT edit this file!
+components=github2
+groupId=org.apache.camel
+artifactId=camel-github2
+version=4.18.0-SNAPSHOT
+projectName=Camel :: GitHub2
+projectDescription=Interact with the GitHub API using kohsuke github-api library
diff --git a/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/component/github2 b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/component/github2
new file mode 100644
index 000000000000..473749ca1fa0
--- /dev/null
+++ b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/component/github2
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.github2.GitHub2Component
diff --git a/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/configurer/github2-component b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/configurer/github2-component
new file mode 100644
index 000000000000..53cb7664d9f0
--- /dev/null
+++ b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/configurer/github2-component
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.github2.GitHub2ComponentConfigurer
diff --git a/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/configurer/github2-endpoint b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/configurer/github2-endpoint
new file mode 100644
index 000000000000..f006a3b025af
--- /dev/null
+++ b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/configurer/github2-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.github2.GitHub2EndpointConfigurer
diff --git a/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/other.properties b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/other.properties
new file mode 100644
index 000000000000..5b27b1651208
--- /dev/null
+++ b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/other.properties
@@ -0,0 +1,7 @@
+# Generated by camel build tools - do NOT edit this file!
+name=github2
+groupId=org.apache.camel
+artifactId=camel-github2
+version=4.18.0-SNAPSHOT
+projectName=Camel :: GitHub2
+projectDescription=Interact with the GitHub API using kohsuke github-api library
diff --git a/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/urifactory/github2-endpoint b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/urifactory/github2-endpoint
new file mode 100644
index 000000000000..dc6bcd2bd5dc
--- /dev/null
+++ b/components/camel-github2/src/generated/resources/META-INF/services/org/apache/camel/urifactory/github2-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.github2.GitHub2EndpointUriFactory
diff --git a/components/camel-github2/src/generated/resources/github2.json b/components/camel-github2/src/generated/resources/github2.json
new file mode 100644
index 000000000000..969a4e849b5c
--- /dev/null
+++ b/components/camel-github2/src/generated/resources/github2.json
@@ -0,0 +1,14 @@
+{
+  "other": {
+    "kind": "other",
+    "name": "github2",
+    "title": "Github2",
+    "description": "Interact with the GitHub API using kohsuke github-api library",
+    "deprecated": false,
+    "firstVersion": "4.18.0",
+    "supportLevel": "Preview",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-github2",
+    "version": "4.18.0-SNAPSHOT"
+  }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Component.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Component.java
new file mode 100644
index 000000000000..06f7b1568684
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Component.java
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2;
+
+import java.util.Map;
+
+import org.apache.camel.Endpoint;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.annotations.Component;
+import org.apache.camel.support.HealthCheckComponent;
+
+/**
+ * Represents the component that manages {@link GitHub2Endpoint}.
+ */
+@Component("github2")
+public class GitHub2Component extends HealthCheckComponent {
+
+    @Metadata(label = "security", secret = true)
+    private String oauthToken;
+
+    @Metadata(label = "advanced")
+    private String apiUrl;
+
+    @Override
+    protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
+        GitHub2Endpoint endpoint = new GitHub2Endpoint(uri, this);
+        endpoint.setOauthToken(oauthToken);
+        endpoint.setApiUrl(apiUrl);
+
+        setProperties(endpoint, parameters);
+
+        String[] parts = remaining.split("/");
+        if (parts.length >= 1) {
+            String s = parts[0];
+            GitHub2Type type = getCamelContext().getTypeConverter().convertTo(GitHub2Type.class, s);
+            endpoint.setType(type);
+            if (parts.length > 1) {
+                s = parts[1];
+                endpoint.setBranchName(s);
+            }
+        }
+        return endpoint;
+    }
+
+    public String getOauthToken() {
+        return oauthToken;
+    }
+
+    /**
+     * GitHub OAuth token. Must be configured on either component or endpoint.
+     */
+    public void setOauthToken(String oauthToken) {
+        this.oauthToken = oauthToken;
+    }
+
+    public String getApiUrl() {
+        return apiUrl;
+    }
+
+    /**
+     * GitHub API URL for GitHub Enterprise. Leave empty for github.com.
+     */
+    public void setApiUrl(String apiUrl) {
+        this.apiUrl = apiUrl;
+    }
+
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Constants.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Constants.java
new file mode 100644
index 000000000000..43f272887d4b
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Constants.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2;
+
+import org.apache.camel.spi.Metadata;
+
+public interface GitHub2Constants {
+
+    String GITHUB_CLIENT = "github2Client";
+
+    @Metadata(description = "The pull request", javaType = "org.kohsuke.github.GHPullRequest or Integer")
+    String GITHUB_PULLREQUEST = "GitHubPullRequest";
+    @Metadata(label = "producer", description = "The id of the comment to reply to", javaType = "Long")
+    String GITHUB_INRESPONSETO = "GitHubInResponseTo";
+    @Metadata(description = "The sha of the head of the pull request", javaType = "String")
+    String GITHUB_PULLREQUEST_HEAD_COMMIT_SHA = "GitHubPullRequestHeadCommitSHA";
+    @Metadata(label = "producer", description = "The title of the issue", javaType = "String")
+    String GITHUB_ISSUE_TITLE = "GitHubIssueTitle";
+
+    @Metadata(label = "consumer", description = "The commit author", javaType = "String")
+    String GITHUB_COMMIT_AUTHOR = "CamelGitHubCommitAuthor";
+    @Metadata(label = "consumer", description = "The committer name", javaType = "String")
+    String GITHUB_COMMIT_COMMITTER = "CamelGitHubCommitCommitter";
+    @Metadata(label = "consumer", description = "The commit sha", javaType = "String")
+    String GITHUB_COMMIT_SHA = "CamelGitHubCommitSha";
+    @Metadata(label = "consumer", description = "The commit URL", javaType = "String")
+    String GITHUB_COMMIT_URL = "CamelGitHubCommitUrl";
+    @Metadata(label = "consumer", description = "The event payload",
+              javaType = "org.kohsuke.github.GHEventPayload")
+    String GITHUB_EVENT_PAYLOAD = "CamelGitHubEventPayload";
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Endpoint.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Endpoint.java
new file mode 100644
index 000000000000..0696b2001178
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Endpoint.java
@@ -0,0 +1,289 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2;
+
+import org.apache.camel.Category;
+import org.apache.camel.Consumer;
+import org.apache.camel.Processor;
+import org.apache.camel.Producer;
+import org.apache.camel.component.github2.consumer.CommitConsumer;
+import org.apache.camel.component.github2.consumer.EventsConsumer;
+import org.apache.camel.component.github2.consumer.PullRequestCommentConsumer;
+import org.apache.camel.component.github2.consumer.PullRequestConsumer;
+import org.apache.camel.component.github2.consumer.TagConsumer;
+import org.apache.camel.component.github2.event.GitHub2EventFetchStrategy;
+import org.apache.camel.component.github2.producer.ClosePullRequestProducer;
+import org.apache.camel.component.github2.producer.CreateIssueProducer;
+import org.apache.camel.component.github2.producer.GetCommitFileProducer;
+import org.apache.camel.component.github2.producer.PullRequestCommentProducer;
+import org.apache.camel.component.github2.producer.PullRequestFilesProducer;
+import org.apache.camel.component.github2.producer.PullRequestStateProducer;
+import org.apache.camel.spi.EndpointServiceLocation;
+import org.apache.camel.spi.Metadata;
+import org.apache.camel.spi.UriEndpoint;
+import org.apache.camel.spi.UriParam;
+import org.apache.camel.spi.UriPath;
+import org.apache.camel.support.ScheduledPollEndpoint;
+import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.StringHelper;
+
+/**
+ * Interact with the GitHub API.
+ *
+ * This component uses the kohsuke github-api library for GitHub API interactions. Available endpoint URIs include:
+ *
+ * CONSUMERS github2://pullRequest (new pull requests) github2://pullRequestComment (new pull request comments)
+ * github2://commit/[branch] (new commits) github2://tag (new tags) github2://event (GitHub events)
+ *
+ * PRODUCERS github2://pullRequestComment (create a new pull request comment) github2://closePullRequest (close a pull
+ * request) github2://pullRequestState (set commit status) github2://pullRequestFiles (get PR files)
+ * github2://getCommitFile (get commit file content) github2://createIssue (create an issue)
+ *
+ * The endpoints respond with org.kohsuke.github POJOs (GHPullRequest, GHCommit, GHIssue, etc.)
+ *
+ */
+@UriEndpoint(firstVersion = "4.18.0", scheme = "github2", title = "GitHub2", syntax = "github2:type/branchName",
+             category = { Category.FILE, Category.CLOUD, Category.API }, headersClass = GitHub2Constants.class)
+public class GitHub2Endpoint extends ScheduledPollEndpoint implements EndpointServiceLocation {
+
+    @UriPath
+    @Metadata(required = true)
+    private GitHub2Type type;
+    @UriPath(label = "consumer")
+    private String branchName;
+    @UriParam(label = "consumer", defaultValue = "last")
+    private String startingSha = "last";
+    @UriParam(label = "consumer", defaultValue = "true")
+    private boolean commitMessageAsBody = true;
+    @UriParam(label = "security", secret = true)
+    private String oauthToken;
+    @UriParam
+    @Metadata(required = true)
+    private String repoOwner;
+    @UriParam
+    @Metadata(required = true)
+    private String repoName;
+    @UriParam(label = "producer", enums = "error,failure,pending,success")
+    private String state;
+    @UriParam(label = "producer")
+    private String targetUrl;
+    @UriParam(label = "producer")
+    private String encoding;
+    @UriParam(label = "consumer,advanced")
+    private GitHub2EventFetchStrategy eventFetchStrategy;
+    @UriParam(label = "advanced")
+    private String apiUrl;
+
+    public GitHub2Endpoint(String uri, GitHub2Component component) {
+        super(uri, component);
+    }
+
+    @Override
+    public String getServiceUrl() {
+        return apiUrl != null ? apiUrl : "https://api.github.com";
+    }
+
+    @Override
+    public String getServiceProtocol() {
+        return "rest";
+    }
+
+    @Override
+    public Producer createProducer() throws Exception {
+        if (type == GitHub2Type.CLOSEPULLREQUEST) {
+            return new ClosePullRequestProducer(this);
+        } else if (type == GitHub2Type.PULLREQUESTCOMMENT) {
+            return new PullRequestCommentProducer(this);
+        } else if (type == GitHub2Type.PULLREQUESTSTATE) {
+            return new PullRequestStateProducer(this);
+        } else if (type == GitHub2Type.PULLREQUESTFILES) {
+            return new PullRequestFilesProducer(this);
+        } else if (type == GitHub2Type.GETCOMMITFILE) {
+            return new GetCommitFileProducer(this);
+        } else if (type == GitHub2Type.CREATEISSUE) {
+            return new CreateIssueProducer(this);
+        }
+        throw new IllegalArgumentException("Cannot create producer with type " + type);
+    }
+
+    @Override
+    public Consumer createConsumer(Processor processor) throws Exception {
+        Consumer consumer = null;
+        if (type == GitHub2Type.COMMIT) {
+            StringHelper.notEmpty(branchName, "branchName", this);
+            consumer = new CommitConsumer(this, processor, branchName, startingSha);
+        } else if (type == GitHub2Type.PULLREQUEST) {
+            consumer = new PullRequestConsumer(this, processor);
+        } else if (type == GitHub2Type.PULLREQUESTCOMMENT) {
+            consumer = new PullRequestCommentConsumer(this, processor);
+        } else if (type == GitHub2Type.TAG) {
+            consumer = new TagConsumer(this, processor);
+        } else if (type == GitHub2Type.EVENT) {
+            consumer = new EventsConsumer(this, processor);
+        }
+
+        if (consumer == null) {
+            throw new IllegalArgumentException("Cannot create consumer with type " + type);
+        }
+
+        configureConsumer(consumer);
+        return consumer;
+    }
+
+    public GitHub2Type getType() {
+        return type;
+    }
+
+    /**
+     * What git operation to execute
+     */
+    public void setType(GitHub2Type type) {
+        this.type = type;
+    }
+
+    public String getBranchName() {
+        return branchName;
+    }
+
+    /**
+     * Name of branch
+     */
+    public void setBranchName(String branchName) {
+        this.branchName = branchName;
+    }
+
+    public boolean isCommitMessageAsBody() {
+        return commitMessageAsBody;
+    }
+
+    /**
+     * Whether the commit consumer should store the commit message or the raw org.kohsuke.github.GHCommit object as the
+     * message body.
+     */
+    public void setCommitMessageAsBody(boolean commitMessageAsBody) {
+        this.commitMessageAsBody = commitMessageAsBody;
+    }
+
+    public String getStartingSha() {
+        return startingSha;
+    }
+
+    /**
+     * The starting sha to use for polling commits with the commit consumer.
+     *
+     * The value can either be a sha for the sha to start from, or use <tt>beginning</tt> to start from the beginning,
+     * or <tt>last</tt> to start from the last commit.
+     */
+    public void setStartingSha(String startingSha) {
+        this.startingSha = startingSha;
+    }
+
+    public String getOauthToken() {
+        return oauthToken;
+    }
+
+    /**
+     * GitHub OAuth token. Must be configured on either component or endpoint.
+     */
+    public void setOauthToken(String oauthToken) {
+        this.oauthToken = oauthToken;
+    }
+
+    public String getRepoOwner() {
+        return repoOwner;
+    }
+
+    /**
+     * GitHub repository owner (organization)
+     */
+    public void setRepoOwner(String repoOwner) {
+        this.repoOwner = repoOwner;
+    }
+
+    public String getRepoName() {
+        return repoName;
+    }
+
+    /**
+     * GitHub repository name
+     */
+    public void setRepoName(String repoName) {
+        this.repoName = repoName;
+    }
+
+    public String getState() {
+        return state;
+    }
+
+    /**
+     * To set git commit status state
+     */
+    public void setState(String state) {
+        this.state = state;
+    }
+
+    public String getTargetUrl() {
+        return targetUrl;
+    }
+
+    /**
+     * To set git commit status target url
+     */
+    public void setTargetUrl(String targetUrl) {
+        this.targetUrl = targetUrl;
+    }
+
+    public String getEncoding() {
+        return encoding;
+    }
+
+    /**
+     * To use the given encoding when getting a git commit file
+     */
+    public void setEncoding(String encoding) {
+        this.encoding = encoding;
+    }
+
+    public GitHub2EventFetchStrategy getEventFetchStrategy() {
+        return eventFetchStrategy;
+    }
+
+    /**
+     * To specify a custom strategy that configures how the EventsConsumer fetches events.
+     */
+    public void setEventFetchStrategy(GitHub2EventFetchStrategy eventFetchStrategy) {
+        this.eventFetchStrategy = eventFetchStrategy;
+    }
+
+    public String getApiUrl() {
+        return apiUrl;
+    }
+
+    /**
+     * GitHub API URL for GitHub Enterprise. Leave empty for github.com.
+     */
+    public void setApiUrl(String apiUrl) {
+        this.apiUrl = apiUrl;
+    }
+
+    @Override
+    protected void doInit() throws Exception {
+        super.doInit();
+
+        ObjectHelper.notNull(oauthToken, "oauthToken");
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Type.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Type.java
new file mode 100644
index 000000000000..e7c2b17a9975
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Type.java
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2;
+
+public enum GitHub2Type {
+
+    CLOSEPULLREQUEST,
+    PULLREQUESTCOMMENT,
+    COMMIT,
+    PULLREQUEST,
+    TAG,
+    PULLREQUESTSTATE,
+    PULLREQUESTFILES,
+    GETCOMMITFILE,
+    CREATEISSUE,
+    EVENT;
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHubClientFactory.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHubClientFactory.java
new file mode 100644
index 000000000000..04bc116f6945
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHubClientFactory.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2;
+
+import java.io.IOException;
+
+import org.kohsuke.github.GitHub;
+import org.kohsuke.github.GitHubBuilder;
+
+/**
+ * Factory for creating GitHub client instances.
+ */
+public final class GitHubClientFactory {
+
+    private GitHubClientFactory() {
+    }
+
+    /**
+     * Creates a GitHub client with the specified OAuth token and optional API URL.
+     *
+     * @param  oauthToken  the OAuth token for authentication
+     * @param  apiUrl      the API URL for GitHub Enterprise (null or empty for github.com)
+     * @return             a configured GitHub client
+     * @throws IOException if the client cannot be created
+     */
+    public static GitHub createClient(String oauthToken, String apiUrl) throws IOException {
+        GitHubBuilder builder = new GitHubBuilder()
+                .withOAuthToken(oauthToken);
+
+        if (apiUrl != null && !apiUrl.isEmpty()) {
+            // GitHub Enterprise support
+            builder.withEndpoint(apiUrl);
+        }
+
+        return builder.build();
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/AbstractGitHub2Consumer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/AbstractGitHub2Consumer.java
new file mode 100644
index 000000000000..7a630350e294
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/AbstractGitHub2Consumer.java
@@ -0,0 +1,101 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.consumer;
+
+import java.util.Queue;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.ExchangePropertyKey;
+import org.apache.camel.Processor;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.apache.camel.component.github2.GitHubClientFactory;
+import org.apache.camel.support.ScheduledBatchPollingConsumer;
+import org.kohsuke.github.GHRepository;
+import org.kohsuke.github.GitHub;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public abstract class AbstractGitHub2Consumer extends ScheduledBatchPollingConsumer {
+
+    private static final Logger LOG = LoggerFactory.getLogger(AbstractGitHub2Consumer.class);
+
+    private final GitHub2Endpoint endpoint;
+    private GitHub github;
+    private GHRepository repository;
+
+    protected AbstractGitHub2Consumer(GitHub2Endpoint endpoint, Processor processor) {
+        super(endpoint, processor);
+        this.endpoint = endpoint;
+    }
+
+    @Override
+    protected void doInit() throws Exception {
+        super.doInit();
+
+        // Check registry for existing GitHub client (useful for testing)
+        github = endpoint.getCamelContext().getRegistry()
+                .lookupByNameAndType(GitHub2Constants.GITHUB_CLIENT, GitHub.class);
+
+        if (github == null) {
+            LOG.debug("Creating GitHub client for endpoint");
+            github = GitHubClientFactory.createClient(
+                    endpoint.getOauthToken(),
+                    endpoint.getApiUrl());
+        } else {
+            LOG.debug("Using GitHub client found in registry");
+        }
+
+        repository = github.getRepository(
+                endpoint.getRepoOwner() + "/" + endpoint.getRepoName());
+    }
+
+    @Override
+    public GitHub2Endpoint getEndpoint() {
+        return (GitHub2Endpoint) super.getEndpoint();
+    }
+
+    protected GitHub getGitHub() {
+        return github;
+    }
+
+    protected GHRepository getRepository() {
+        return repository;
+    }
+
+    @Override
+    public int processBatch(Queue<Object> exchanges) throws Exception {
+        int total = exchanges.size();
+        int answer = total;
+        if (this.maxMessagesPerPoll > 0 && total > this.maxMessagesPerPoll) {
+            LOG.debug("Limiting to maximum messages to poll {} as there were {} messages in this poll.",
+                    this.maxMessagesPerPoll, total);
+            total = this.maxMessagesPerPoll;
+        }
+
+        for (int index = 0; index < total && this.isBatchAllowed(); ++index) {
+            Exchange exchange = (Exchange) exchanges.poll();
+            exchange.setProperty(ExchangePropertyKey.BATCH_INDEX, index);
+            exchange.setProperty(ExchangePropertyKey.BATCH_SIZE, total);
+            exchange.setProperty(ExchangePropertyKey.BATCH_COMPLETE, index == total - 1);
+            this.pendingExchanges = total - index - 1;
+            getProcessor().process(exchange);
+        }
+
+        return answer;
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/CommitConsumer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/CommitConsumer.java
new file mode 100644
index 000000000000..e9164e712535
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/CommitConsumer.java
@@ -0,0 +1,196 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.consumer;
+
+import java.util.ArrayDeque;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Queue;
+import java.util.concurrent.LinkedBlockingQueue;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.ExchangePropertyKey;
+import org.apache.camel.Processor;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.kohsuke.github.GHCommit;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class CommitConsumer extends AbstractGitHub2Consumer {
+
+    private static final Logger LOG = LoggerFactory.getLogger(CommitConsumer.class);
+    private static final int CAPACITY = 1000;
+
+    private final String branchName;
+    private final String startingSha;
+
+    private final Queue<String> commitHashes = new LinkedBlockingQueue<>(CAPACITY);
+    private volatile String lastSha;
+    private boolean started = false;
+
+    public CommitConsumer(GitHub2Endpoint endpoint, Processor processor, String branchName,
+                          String startingSha) {
+        super(endpoint, processor);
+        this.branchName = branchName;
+        this.startingSha = startingSha;
+    }
+
+    @Override
+    protected void doStart() throws Exception {
+        lock.lock();
+        try {
+            super.doStart();
+
+            // ensure we start from clean
+            commitHashes.clear();
+            lastSha = null;
+
+            if (startingSha.equals("last")) {
+                LOG.info("Indexing current commits on: {}/{}@{}", getEndpoint().getRepoOwner(),
+                        getEndpoint().getRepoName(), branchName);
+                List<GHCommit> commits = new ArrayList<>();
+                for (GHCommit commit : getRepository().queryCommits().from(branchName).list().withPageSize(1)) {
+                    commits.add(commit);
+                    break; // just get the first one
+                }
+                if (!commits.isEmpty()) {
+                    lastSha = commits.get(0).getSHA1();
+                }
+                LOG.info("Starting from last sha: {}", lastSha);
+            } else if (!startingSha.equals("beginning")) {
+                lastSha = startingSha;
+                LOG.info("Starting from sha: {}", lastSha);
+            } else {
+                LOG.info("Starting from beginning");
+            }
+            started = true;
+        } finally {
+            lock.unlock();
+        }
+    }
+
+    @Override
+    protected void doStop() throws Exception {
+        lock.lock();
+        try {
+            super.doStop();
+
+            commitHashes.clear();
+            lastSha = null;
+            started = false;
+        } finally {
+            lock.unlock();
+        }
+    }
+
+    @Override
+    protected int poll() throws Exception {
+        lock.lock();
+        try {
+            if (!started) {
+                return 0;
+            }
+
+            List<GHCommit> commits = new ArrayList<>();
+            for (GHCommit commit : getRepository().queryCommits().from(branchName).list().withPageSize(100)) {
+                commits.add(commit);
+                // Stop after 100 commits to avoid fetching too many
+                if (commits.size() >= 100) {
+                    break;
+                }
+            }
+
+            // clip the list after the last sha
+            if (lastSha != null) {
+                int pos = -1;
+                for (int i = 0; i < commits.size(); i++) {
+                    GHCommit commit = commits.get(i);
+                    if (lastSha.equals(commit.getSHA1())) {
+                        pos = i;
+                        break;
+                    }
+                }
+                if (pos != -1) {
+                    commits = commits.subList(0, pos);
+                }
+            }
+
+            // In the end, we want commits oldest to newest
+            ArrayDeque<GHCommit> newCommits = new ArrayDeque<>();
+            for (GHCommit commit : commits) {
+                String sha = commit.getSHA1();
+                if (!commitHashes.contains(sha)) {
+                    newCommits.push(commit);
+                    // make room when adding new elements
+                    while (commitHashes.size() > CAPACITY - 1) {
+                        commitHashes.remove();
+                    }
+                    commitHashes.add(sha);
+                }
+            }
+
+            Queue<Object> exchanges = new ArrayDeque<>();
+            while (!newCommits.isEmpty()) {
+                GHCommit newCommit = newCommits.pop();
+                Exchange e = createExchange(true);
+                if (newCommit.getAuthor() != null) {
+                    e.getMessage().setHeader(GitHub2Constants.GITHUB_COMMIT_AUTHOR, newCommit.getAuthor().getName());
+                }
+                if (newCommit.getCommitter() != null) {
+                    e.getMessage().setHeader(GitHub2Constants.GITHUB_COMMIT_COMMITTER, newCommit.getCommitter().getName());
+                }
+                e.getMessage().setHeader(GitHub2Constants.GITHUB_COMMIT_SHA, newCommit.getSHA1());
+                e.getMessage().setHeader(GitHub2Constants.GITHUB_COMMIT_URL, newCommit.getHtmlUrl().toString());
+                if (getEndpoint().isCommitMessageAsBody()) {
+                    e.getMessage().setBody(newCommit.getCommitShortInfo().getMessage());
+                } else {
+                    e.getMessage().setBody(newCommit);
+                }
+                exchanges.add(e);
+            }
+            int counter = processBatch(exchanges);
+            LOG.debug("Last sha: {}", lastSha);
+            return counter;
+        } finally {
+            lock.unlock();
+        }
+    }
+
+    @Override
+    public int processBatch(Queue<Object> exchanges) throws Exception {
+        int total = exchanges.size();
+        int answer = total;
+        if (this.maxMessagesPerPoll > 0 && total > this.maxMessagesPerPoll) {
+            LOG.debug("Limiting to maximum messages to poll {} as there were {} messages in this poll.",
+                    this.maxMessagesPerPoll, total);
+            total = this.maxMessagesPerPoll;
+        }
+
+        for (int index = 0; index < total && this.isBatchAllowed(); ++index) {
+            Exchange exchange = (Exchange) exchanges.poll();
+            exchange.setProperty(ExchangePropertyKey.BATCH_INDEX, index);
+            exchange.setProperty(ExchangePropertyKey.BATCH_SIZE, total);
+            exchange.setProperty(ExchangePropertyKey.BATCH_COMPLETE, index == total - 1);
+            this.pendingExchanges = total - index - 1;
+            this.lastSha = exchange.getMessage().getHeader(GitHub2Constants.GITHUB_COMMIT_SHA, String.class);
+            getProcessor().process(exchange);
+        }
+
+        return answer;
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/EventsConsumer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/EventsConsumer.java
new file mode 100644
index 000000000000..84924af6a361
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/EventsConsumer.java
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.consumer;
+
+import java.io.IOException;
+import java.util.ArrayDeque;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Queue;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.apache.camel.component.github2.event.GitHub2EventFetchStrategy;
+import org.kohsuke.github.GHEventInfo;
+import org.kohsuke.github.GHRepository;
+import org.kohsuke.github.PagedIterable;
+
+public class EventsConsumer extends AbstractGitHub2Consumer {
+
+    private final GitHub2EventFetchStrategy eventFetchStrategy;
+    private long lastEventId;
+
+    public EventsConsumer(GitHub2Endpoint endpoint, Processor processor) {
+        super(endpoint, processor);
+
+        GitHub2EventFetchStrategy strategy = endpoint.getEventFetchStrategy();
+        if (strategy != null) {
+            this.eventFetchStrategy = strategy;
+        } else {
+            this.eventFetchStrategy = new DefaultGitHub2EventFetchStrategy();
+        }
+    }
+
+    @Override
+    protected int poll() throws Exception {
+        List<GHEventInfo> newEvents = new ArrayList<>();
+        PagedIterable<GHEventInfo> events = eventFetchStrategy.fetchEvents(getRepository());
+
+        for (GHEventInfo event : events) {
+            if (event.getId() > lastEventId) {
+                newEvents.add(event);
+            }
+        }
+
+        Queue<Object> exchanges = new ArrayDeque<>();
+        if (!newEvents.isEmpty()) {
+            newEvents.sort((e1, e2) -> Long.compare(e1.getId(), e2.getId()));
+            GHEventInfo latestEvent = newEvents.get(newEvents.size() - 1);
+            lastEventId = latestEvent.getId();
+
+            for (GHEventInfo event : newEvents) {
+                Exchange e = createExchange(true);
+                e.getMessage().setBody(event.getType().name());
+                // Store the event info object itself - payload extraction requires specific class
+                e.getMessage().setHeader(GitHub2Constants.GITHUB_EVENT_PAYLOAD, event);
+                exchanges.add(e);
+            }
+        }
+        return processBatch(exchanges);
+    }
+
+    /**
+     * Default {@link GitHub2EventFetchStrategy} to fetch events for the GitHub repository configured on the endpoint.
+     */
+    private static final class DefaultGitHub2EventFetchStrategy implements GitHub2EventFetchStrategy {
+
+        @Override
+        public PagedIterable<GHEventInfo> fetchEvents(GHRepository repository) throws IOException {
+            return repository.listEvents();
+        }
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/PullRequestCommentConsumer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/PullRequestCommentConsumer.java
new file mode 100644
index 000000000000..e893048fcf36
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/PullRequestCommentConsumer.java
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.consumer;
+
+import java.util.ArrayDeque;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Queue;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.kohsuke.github.GHIssueComment;
+import org.kohsuke.github.GHIssueState;
+import org.kohsuke.github.GHPullRequest;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class PullRequestCommentConsumer extends AbstractGitHub2Consumer {
+
+    private static final Logger LOG = LoggerFactory.getLogger(PullRequestCommentConsumer.class);
+
+    private long lastCommentId;
+
+    public PullRequestCommentConsumer(GitHub2Endpoint endpoint, Processor processor) {
+        super(endpoint, processor);
+    }
+
+    @Override
+    protected void doStart() throws Exception {
+        super.doStart();
+
+        LOG.info("GitHub PullRequestCommentConsumer: Indexing current comments...");
+        List<GHPullRequest> pullRequests = getRepository().getPullRequests(GHIssueState.OPEN);
+        for (GHPullRequest pr : pullRequests) {
+            List<GHIssueComment> comments = pr.getComments();
+            for (GHIssueComment comment : comments) {
+                if (comment.getId() > lastCommentId) {
+                    lastCommentId = comment.getId();
+                }
+            }
+        }
+    }
+
+    @Override
+    protected int poll() throws Exception {
+        List<GHPullRequest> openPullRequests = getRepository().getPullRequests(GHIssueState.OPEN);
+
+        List<GHIssueComment> newComments = new ArrayList<>();
+        for (GHPullRequest pr : openPullRequests) {
+            List<GHIssueComment> comments = pr.getComments();
+            for (GHIssueComment comment : comments) {
+                if (comment.getId() > lastCommentId) {
+                    newComments.add(comment);
+                }
+            }
+        }
+
+        // Sort by ID to process oldest first
+        newComments.sort((c1, c2) -> Long.compare(c1.getId(), c2.getId()));
+
+        Queue<Object> exchanges = new ArrayDeque<>();
+        for (GHIssueComment comment : newComments) {
+            Exchange e = createExchange(true);
+            e.getIn().setBody(comment);
+            e.getIn().setHeader(GitHub2Constants.GITHUB_PULLREQUEST, comment.getParent().getNumber());
+            exchanges.add(e);
+            lastCommentId = comment.getId();
+        }
+
+        return processBatch(exchanges);
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/PullRequestConsumer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/PullRequestConsumer.java
new file mode 100644
index 000000000000..0e57eda434c8
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/PullRequestConsumer.java
@@ -0,0 +1,87 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.consumer;
+
+import java.util.ArrayDeque;
+import java.util.List;
+import java.util.Queue;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.kohsuke.github.GHIssueState;
+import org.kohsuke.github.GHPullRequest;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class PullRequestConsumer extends AbstractGitHub2Consumer {
+
+    private static final Logger LOG = LoggerFactory.getLogger(PullRequestConsumer.class);
+
+    private int lastOpenPullRequest;
+
+    public PullRequestConsumer(GitHub2Endpoint endpoint, Processor processor) {
+        super(endpoint, processor);
+    }
+
+    @Override
+    protected void doStart() throws Exception {
+        super.doStart();
+
+        LOG.info("GitHub PullRequestConsumer: Indexing current pull requests...");
+        List<GHPullRequest> pullRequests = getRepository().getPullRequests(GHIssueState.OPEN);
+        if (!pullRequests.isEmpty()) {
+            lastOpenPullRequest = pullRequests.get(0).getNumber();
+        }
+    }
+
+    @Override
+    protected int poll() throws Exception {
+        List<GHPullRequest> openPullRequests = getRepository().getPullRequests(GHIssueState.OPEN);
+
+        // In the end, we want PRs oldest to newest
+        ArrayDeque<GHPullRequest> newPullRequests = new ArrayDeque<>();
+        for (GHPullRequest pullRequest : openPullRequests) {
+            if (pullRequest.getNumber() > lastOpenPullRequest) {
+                newPullRequests.push(pullRequest);
+            } else {
+                break;
+            }
+        }
+
+        if (!newPullRequests.isEmpty()) {
+            lastOpenPullRequest = openPullRequests.get(0).getNumber();
+        }
+
+        Queue<Object> exchanges = new ArrayDeque<>();
+        while (!newPullRequests.isEmpty()) {
+            GHPullRequest newPullRequest = newPullRequests.pop();
+            Exchange e = createExchange(true);
+
+            e.getIn().setBody(newPullRequest);
+
+            // Required by the producers. Set it here for convenience.
+            e.getIn().setHeader(GitHub2Constants.GITHUB_PULLREQUEST, newPullRequest.getNumber());
+            if (newPullRequest.getHead() != null) {
+                e.getIn().setHeader(GitHub2Constants.GITHUB_PULLREQUEST_HEAD_COMMIT_SHA, newPullRequest.getHead().getSha());
+            }
+            exchanges.add(e);
+        }
+        return processBatch(exchanges);
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/TagConsumer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/TagConsumer.java
new file mode 100644
index 000000000000..9f96005dcb3c
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/consumer/TagConsumer.java
@@ -0,0 +1,71 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.consumer;
+
+import java.util.ArrayDeque;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Queue;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.kohsuke.github.GHTag;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class TagConsumer extends AbstractGitHub2Consumer {
+
+    private static final Logger LOG = LoggerFactory.getLogger(TagConsumer.class);
+
+    private final List<String> tagNames = new ArrayList<>();
+
+    public TagConsumer(GitHub2Endpoint endpoint, Processor processor) {
+        super(endpoint, processor);
+    }
+
+    @Override
+    protected void doStart() throws Exception {
+        super.doStart();
+
+        LOG.info("GitHub TagConsumer: Indexing current tags...");
+        for (GHTag tag : getRepository().listTags()) {
+            tagNames.add(tag.getName());
+        }
+    }
+
+    @Override
+    protected int poll() throws Exception {
+        // In the end, we want tags oldest to newest
+        ArrayDeque<GHTag> newTags = new ArrayDeque<>();
+        for (GHTag tag : getRepository().listTags()) {
+            if (!tagNames.contains(tag.getName())) {
+                newTags.push(tag);
+                tagNames.add(tag.getName());
+            }
+        }
+
+        Queue<Object> exchanges = new ArrayDeque<>();
+        while (!newTags.isEmpty()) {
+            GHTag newTag = newTags.pop();
+            Exchange e = createExchange(true);
+            e.getIn().setBody(newTag);
+            exchanges.add(e);
+        }
+        return processBatch(exchanges);
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/event/GitHub2EventFetchStrategy.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/event/GitHub2EventFetchStrategy.java
new file mode 100644
index 000000000000..946b276bf49d
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/event/GitHub2EventFetchStrategy.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.event;
+
+import java.io.IOException;
+
+import org.kohsuke.github.GHEventInfo;
+import org.kohsuke.github.GHRepository;
+import org.kohsuke.github.PagedIterable;
+
+/**
+ * Strategy for fetching GitHub events.
+ */
+public interface GitHub2EventFetchStrategy {
+
+    /**
+     * Fetches events from GitHub.
+     *
+     * @param  repository  the GitHub repository
+     * @return             an iterable of GitHub events
+     * @throws IOException if an I/O error occurs
+     */
+    PagedIterable<GHEventInfo> fetchEvents(GHRepository repository) throws IOException;
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/AbstractGitHub2Producer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/AbstractGitHub2Producer.java
new file mode 100644
index 000000000000..80ae7cb2a2e6
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/AbstractGitHub2Producer.java
@@ -0,0 +1,78 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.producer;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.apache.camel.component.github2.GitHubClientFactory;
+import org.apache.camel.support.DefaultProducer;
+import org.kohsuke.github.GHRepository;
+import org.kohsuke.github.GitHub;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public abstract class AbstractGitHub2Producer extends DefaultProducer {
+
+    private static final Logger LOG = LoggerFactory.getLogger(AbstractGitHub2Producer.class);
+
+    private final GitHub2Endpoint endpoint;
+    private GitHub github;
+    private GHRepository repository;
+
+    protected AbstractGitHub2Producer(GitHub2Endpoint endpoint) {
+        super(endpoint);
+        this.endpoint = endpoint;
+    }
+
+    @Override
+    protected void doInit() throws Exception {
+        super.doInit();
+
+        // Check registry for existing GitHub client (useful for testing)
+        github = endpoint.getCamelContext().getRegistry()
+                .lookupByNameAndType(GitHub2Constants.GITHUB_CLIENT, GitHub.class);
+
+        if (github == null) {
+            LOG.debug("Creating GitHub client for endpoint");
+            github = GitHubClientFactory.createClient(
+                    endpoint.getOauthToken(),
+                    endpoint.getApiUrl());
+        } else {
+            LOG.debug("Using GitHub client found in registry");
+        }
+
+        repository = github.getRepository(
+                endpoint.getRepoOwner() + "/" + endpoint.getRepoName());
+    }
+
+    @Override
+    public GitHub2Endpoint getEndpoint() {
+        return (GitHub2Endpoint) super.getEndpoint();
+    }
+
+    protected GitHub getGitHub() {
+        return github;
+    }
+
+    protected GHRepository getRepository() {
+        return repository;
+    }
+
+    @Override
+    public abstract void process(Exchange exchange) throws Exception;
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/ClosePullRequestProducer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/ClosePullRequestProducer.java
new file mode 100644
index 000000000000..0946dfde1229
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/ClosePullRequestProducer.java
@@ -0,0 +1,49 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.producer;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.apache.camel.util.ObjectHelper;
+import org.kohsuke.github.GHPullRequest;
+
+/**
+ * Producer endpoint that closes a pull request. The endpoint requires the "GitHubPullRequest" header, identifying the
+ * pull request number (integer).
+ */
+public class ClosePullRequestProducer extends AbstractGitHub2Producer {
+
+    public ClosePullRequestProducer(GitHub2Endpoint endpoint) {
+        super(endpoint);
+    }
+
+    @Override
+    public void process(Exchange exchange) throws Exception {
+        Integer pullRequestNumber = exchange.getIn().getHeader(GitHub2Constants.GITHUB_PULLREQUEST, Integer.class);
+        if (ObjectHelper.isEmpty(pullRequestNumber)) {
+            throw new IllegalArgumentException("Pull request number must be specified");
+        }
+
+        GHPullRequest pullRequest = getRepository().getPullRequest(pullRequestNumber);
+        pullRequest.close();
+
+        // copy the header of in message to the out message
+        exchange.getMessage().copyFrom(exchange.getIn());
+        exchange.getMessage().setBody(pullRequest);
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/CreateIssueProducer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/CreateIssueProducer.java
new file mode 100644
index 000000000000..ae469b926938
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/CreateIssueProducer.java
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.producer;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.apache.camel.util.ObjectHelper;
+import org.kohsuke.github.GHIssue;
+
+/**
+ * Producer endpoint that creates an issue. The endpoint requires the "GitHubIssueTitle" header, which sets the GitHub
+ * issue title. The issue body content is set from the exchange message body.
+ */
+public class CreateIssueProducer extends AbstractGitHub2Producer {
+
+    public CreateIssueProducer(GitHub2Endpoint endpoint) {
+        super(endpoint);
+    }
+
+    @Override
+    public void process(Exchange exchange) throws Exception {
+        String issueTitle = exchange.getIn().getHeader(GitHub2Constants.GITHUB_ISSUE_TITLE, String.class);
+        if (ObjectHelper.isEmpty(issueTitle)) {
+            throw new IllegalArgumentException("Issue Title must be specified to create an issue");
+        }
+
+        String body = exchange.getIn().getBody(String.class);
+
+        GHIssue issue = getRepository()
+                .createIssue(issueTitle)
+                .body(body)
+                .create();
+
+        // copy the header of in message to the out message
+        exchange.getMessage().copyFrom(exchange.getIn());
+        exchange.getMessage().setBody(issue);
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/GetCommitFileProducer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/GetCommitFileProducer.java
new file mode 100644
index 000000000000..6de27c410dad
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/GetCommitFileProducer.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.producer;
+
+import java.nio.charset.Charset;
+import java.util.Base64;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.apache.camel.util.ObjectHelper;
+import org.kohsuke.github.GHBlob;
+import org.kohsuke.github.GHCommit;
+
+/**
+ * Producer endpoint that gets a file from a commit. The endpoint requires the "CamelGitHubCommitSha" header,
+ * identifying the commit SHA. The message body should contain the file path within the repository.
+ */
+public class GetCommitFileProducer extends AbstractGitHub2Producer {
+
+    private final String encoding;
+
+    public GetCommitFileProducer(GitHub2Endpoint endpoint) {
+        super(endpoint);
+        this.encoding = endpoint.getEncoding();
+    }
+
+    @Override
+    public void process(Exchange exchange) throws Exception {
+        String sha = exchange.getIn().getHeader(GitHub2Constants.GITHUB_COMMIT_SHA, String.class);
+        if (ObjectHelper.isEmpty(sha)) {
+            sha = exchange.getIn().getBody(String.class);
+        }
+
+        if (ObjectHelper.isEmpty(sha)) {
+            throw new IllegalArgumentException("Commit SHA must be specified");
+        }
+
+        GHCommit commit = getRepository().getCommit(sha);
+        GHBlob blob = null;
+
+        // Get the tree and find the file
+        // For simplicity, we get the blob SHA from the exchange body if it's a file path
+        String filePath = exchange.getIn().getBody(String.class);
+        if (filePath != null && !filePath.equals(sha)) {
+            // Try to get the file content from the commit
+            blob = getRepository().getBlob(sha);
+        } else {
+            blob = getRepository().getBlob(sha);
+        }
+
+        String content = null;
+        if (blob != null) {
+            String encodedContent = blob.getContent();
+            Charset charset = encoding != null ? Charset.forName(encoding) : Charset.defaultCharset();
+            content = new String(Base64.getDecoder().decode(encodedContent), charset);
+        }
+
+        // copy the header of in message to the out message
+        exchange.getMessage().copyFrom(exchange.getIn());
+        exchange.getMessage().setBody(content);
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/PullRequestCommentProducer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/PullRequestCommentProducer.java
new file mode 100644
index 000000000000..41696e19a2a6
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/PullRequestCommentProducer.java
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.producer;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.apache.camel.support.ExchangeHelper;
+import org.kohsuke.github.GHIssueComment;
+import org.kohsuke.github.GHPullRequest;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Producer endpoint that adds a comment on a GitHub pull request.
+ *
+ * The endpoint requires the "GitHubPullRequest" header, identifying the pull request number (integer). If the
+ * "GitHubInResponseTo" header is provided (identifying a comment ID), the comment will be a reply to that comment (if
+ * supported).
+ */
+public class PullRequestCommentProducer extends AbstractGitHub2Producer {
+
+    private static final Logger LOG = LoggerFactory.getLogger(PullRequestCommentProducer.class);
+
+    public PullRequestCommentProducer(GitHub2Endpoint endpoint) {
+        super(endpoint);
+    }
+
+    @Override
+    public void process(Exchange exchange) throws Exception {
+        Integer pullRequestNumber = exchange.getIn().getHeader(GitHub2Constants.GITHUB_PULLREQUEST, Integer.class);
+        String text = exchange.getIn().getBody(String.class);
+
+        GHPullRequest pullRequest = getRepository().getPullRequest(pullRequestNumber);
+
+        // Create a comment on the pull request
+        GHIssueComment response = pullRequest.comment(text);
+
+        // support InOut
+        ExchangeHelper.setOutBodyPatternAware(exchange, response);
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/PullRequestFilesProducer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/PullRequestFilesProducer.java
new file mode 100644
index 000000000000..8d657ede9072
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/PullRequestFilesProducer.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.producer;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.apache.camel.util.ObjectHelper;
+import org.kohsuke.github.GHPullRequest;
+import org.kohsuke.github.GHPullRequestFileDetail;
+
+/**
+ * Producer endpoint that gets the list of files in a pull request. The endpoint requires the "GitHubPullRequest"
+ * header, identifying the pull request number (integer).
+ */
+public class PullRequestFilesProducer extends AbstractGitHub2Producer {
+
+    public PullRequestFilesProducer(GitHub2Endpoint endpoint) {
+        super(endpoint);
+    }
+
+    @Override
+    public void process(Exchange exchange) throws Exception {
+        Integer pullRequestNumber = exchange.getIn().getHeader(GitHub2Constants.GITHUB_PULLREQUEST, Integer.class);
+        if (ObjectHelper.isEmpty(pullRequestNumber)) {
+            throw new IllegalArgumentException("Pull request number must be specified");
+        }
+
+        GHPullRequest pullRequest = getRepository().getPullRequest(pullRequestNumber);
+
+        List<GHPullRequestFileDetail> files = new ArrayList<>();
+        for (GHPullRequestFileDetail file : pullRequest.listFiles()) {
+            files.add(file);
+        }
+
+        // copy the header of in message to the out message
+        exchange.getMessage().copyFrom(exchange.getIn());
+        exchange.getMessage().setBody(files);
+    }
+}
diff --git a/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/PullRequestStateProducer.java b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/PullRequestStateProducer.java
new file mode 100644
index 000000000000..bb7c5e12d873
--- /dev/null
+++ b/components/camel-github2/src/main/java/org/apache/camel/component/github2/producer/PullRequestStateProducer.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.producer;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.github2.GitHub2Endpoint;
+import org.kohsuke.github.GHCommitState;
+import org.kohsuke.github.GHCommitStatus;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Producer endpoint that sets the commit status.
+ *
+ * The endpoint requires the "GitHubPullRequestHeadCommitSHA" header, identifying the commit SHA on which the state will
+ * be recorded.
+ */
+public class PullRequestStateProducer extends AbstractGitHub2Producer {
+
+    private static final Logger LOG = LoggerFactory.getLogger(PullRequestStateProducer.class);
+
+    private final String state;
+    private final String targetUrl;
+
+    public PullRequestStateProducer(GitHub2Endpoint endpoint) {
+        super(endpoint);
+        this.state = endpoint.getState();
+        this.targetUrl = endpoint.getTargetUrl();
+    }
+
+    @Override
+    public void process(Exchange exchange) throws Exception {
+        String sha = exchange.getIn().getHeader(GitHub2Constants.GITHUB_PULLREQUEST_HEAD_COMMIT_SHA, String.class);
+        String description = exchange.getIn().getBody(String.class);
+
+        GHCommitState ghState = null;
+        if (state != null) {
+            ghState = GHCommitState.valueOf(state.toUpperCase());
+        }
+
+        GHCommitStatus status = getRepository().createCommitStatus(
+                sha,
+                ghState,
+                targetUrl,
+                description,
+                null // context
+        );
+
+        // copy the header of in message to the out message
+        exchange.getMessage().copyFrom(exchange.getIn());
+        exchange.getMessage().setBody(status);
+    }
+}
diff --git a/components/camel-github2/src/test/java/org/apache/camel/component/github2/GitHub2ComponentTest.java b/components/camel-github2/src/test/java/org/apache/camel/component/github2/GitHub2ComponentTest.java
new file mode 100644
index 000000000000..499ea199f726
--- /dev/null
+++ b/components/camel-github2/src/test/java/org/apache/camel/component/github2/GitHub2ComponentTest.java
@@ -0,0 +1,119 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.impl.DefaultCamelContext;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+public class GitHub2ComponentTest {
+
+    @Test
+    public void testComponentConfiguration() throws Exception {
+        try (CamelContext context = new DefaultCamelContext()) {
+            GitHub2Component component = new GitHub2Component();
+            component.setCamelContext(context);
+            component.setOauthToken("test-token");
+            component.setApiUrl("https://github.mycompany.com/api/v3");
+
+            assertEquals("test-token", component.getOauthToken());
+            assertEquals("https://github.mycompany.com/api/v3", component.getApiUrl());
+        }
+    }
+
+    @Test
+    public void testEndpointConfiguration() throws Exception {
+        try (CamelContext context = new DefaultCamelContext()) {
+            GitHub2Component component = new GitHub2Component();
+            component.setCamelContext(context);
+            component.setOauthToken("test-token");
+            context.addComponent("github2", component);
+            context.start();
+
+            GitHub2Endpoint endpoint = (GitHub2Endpoint) context.getEndpoint(
+                    "github2:commit/main?repoOwner=apache&repoName=camel&startingSha=last");
+
+            assertNotNull(endpoint);
+            assertEquals(GitHub2Type.COMMIT, endpoint.getType());
+            assertEquals("main", endpoint.getBranchName());
+            assertEquals("apache", endpoint.getRepoOwner());
+            assertEquals("camel", endpoint.getRepoName());
+            assertEquals("last", endpoint.getStartingSha());
+        }
+    }
+
+    @Test
+    public void testEndpointWithPullRequest() throws Exception {
+        try (CamelContext context = new DefaultCamelContext()) {
+            GitHub2Component component = new GitHub2Component();
+            component.setCamelContext(context);
+            component.setOauthToken("test-token");
+            context.addComponent("github2", component);
+            context.start();
+
+            GitHub2Endpoint endpoint = (GitHub2Endpoint) context.getEndpoint(
+                    "github2:pullRequest?repoOwner=apache&repoName=camel");
+
+            assertNotNull(endpoint);
+            assertEquals(GitHub2Type.PULLREQUEST, endpoint.getType());
+            assertEquals("apache", endpoint.getRepoOwner());
+            assertEquals("camel", endpoint.getRepoName());
+        }
+    }
+
+    @Test
+    public void testEndpointWithApiUrl() throws Exception {
+        try (CamelContext context = new DefaultCamelContext()) {
+            GitHub2Component component = new GitHub2Component();
+            component.setCamelContext(context);
+            component.setOauthToken("test-token");
+            context.addComponent("github2", component);
+            context.start();
+
+            GitHub2Endpoint endpoint = (GitHub2Endpoint) context.getEndpoint(
+                    "github2:commit/main?repoOwner=myorg&repoName=myrepo&apiUrl=https://github.mycompany.com/api/v3");
+
+            assertNotNull(endpoint);
+            assertEquals("https://github.mycompany.com/api/v3", endpoint.getApiUrl());
+        }
+    }
+
+    @Test
+    public void testConstants() {
+        // Verify constants are accessible
+        assertNotNull(GitHub2Constants.GITHUB_PULLREQUEST);
+        assertNotNull(GitHub2Constants.GITHUB_COMMIT_SHA);
+        assertNotNull(GitHub2Constants.GITHUB_COMMIT_AUTHOR);
+    }
+
+    @Test
+    public void testTypeEnum() {
+        assertEquals("commit", GitHub2Type.COMMIT.name().toLowerCase());
+        assertEquals("pullrequest", GitHub2Type.PULLREQUEST.name().toLowerCase());
+        assertEquals("tag", GitHub2Type.TAG.name().toLowerCase());
+        assertEquals("closepullrequest", GitHub2Type.CLOSEPULLREQUEST.name().toLowerCase());
+        assertEquals("pullrequestcomment", GitHub2Type.PULLREQUESTCOMMENT.name().toLowerCase());
+        assertEquals("pullrequestfiles", GitHub2Type.PULLREQUESTFILES.name().toLowerCase());
+        assertEquals("pullrequeststate", GitHub2Type.PULLREQUESTSTATE.name().toLowerCase());
+        assertEquals("createissue", GitHub2Type.CREATEISSUE.name().toLowerCase());
+        assertEquals("getcommitfile", GitHub2Type.GETCOMMITFILE.name().toLowerCase());
+        assertEquals("event", GitHub2Type.EVENT.name().toLowerCase());
+    }
+}
diff --git a/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2ClientFactoryIT.java b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2ClientFactoryIT.java
new file mode 100644
index 000000000000..a12e98c01ad9
--- /dev/null
+++ b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2ClientFactoryIT.java
@@ -0,0 +1,93 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.integration;
+
+import org.apache.camel.component.github2.GitHubClientFactory;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
+import org.kohsuke.github.GHRepository;
+import org.kohsuke.github.GHUser;
+import org.kohsuke.github.GitHub;
+
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+/**
+ * Integration test for GitHubClientFactory.
+ *
+ * To run this test: mvn verify -Dgithub2.test.token=ghp_... -Dgithub2.test.repoOwner=owner -Dgithub2.test.repoName=repo
+ */
+@EnabledIfSystemProperty(named = "github2.test.token", matches = ".+")
+public class GitHub2ClientFactoryIT {
+
+    private static String oauthToken;
+    private static String repoOwner;
+    private static String repoName;
+
+    @BeforeAll
+    public static void checkConfiguration() {
+        oauthToken = System.getProperty("github2.test.token");
+        repoOwner = System.getProperty("github2.test.repoOwner");
+        repoName = System.getProperty("github2.test.repoName");
+    }
+
+    @Test
+    public void testCreateClientWithToken() throws Exception {
+        GitHub github = GitHubClientFactory.createClient(oauthToken, null);
+
+        assertNotNull(github);
+        assertTrue(github.isCredentialValid());
+        assertFalse(github.isAnonymous());
+    }
+
+    @Test
+    public void testGetCurrentUser() throws Exception {
+        GitHub github = GitHubClientFactory.createClient(oauthToken, null);
+
+        GHUser myself = github.getMyself();
+        assertNotNull(myself);
+        assertNotNull(myself.getLogin());
+    }
+
+    @Test
+    public void testGetRepository() throws Exception {
+        GitHub github = GitHubClientFactory.createClient(oauthToken, null);
+
+        GHRepository repo = github.getRepository(repoOwner + "/" + repoName);
+        assertNotNull(repo);
+        assertNotNull(repo.getName());
+        assertNotNull(repo.getOwnerName());
+    }
+
+    @Test
+    public void testListCommits() throws Exception {
+        GitHub github = GitHubClientFactory.createClient(oauthToken, null);
+
+        GHRepository repo = github.getRepository(repoOwner + "/" + repoName);
+        assertNotNull(repo);
+
+        // Just verify we can list commits without error
+        var commits = repo.listCommits();
+        assertNotNull(commits);
+        // Get at least one commit
+        var iterator = commits.iterator();
+        assertTrue(iterator.hasNext(), "Repository should have at least one commit");
+        assertNotNull(iterator.next().getSHA1());
+    }
+}
diff --git a/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2CommitConsumerIT.java b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2CommitConsumerIT.java
new file mode 100644
index 000000000000..06b2117258f4
--- /dev/null
+++ b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2CommitConsumerIT.java
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.integration;
+
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.github2.GitHub2Constants;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+/**
+ * Integration test for GitHub2 Commit Consumer.
+ *
+ * To run this test: mvn verify -Dgithub2.test.token=ghp_... -Dgithub2.test.repoOwner=owner -Dgithub2.test.repoName=repo
+ * -Dgithub2.test.branch=main
+ */
+@EnabledIfSystemProperty(named = "github2.test.token", matches = ".+")
+public class GitHub2CommitConsumerIT extends GitHub2IntegrationTestSupport {
+
+    private static final Logger LOG = LoggerFactory.getLogger(GitHub2CommitConsumerIT.class);
+
+    @Test
+    public void testConsumeCommits() throws Exception {
+        MockEndpoint mock = getMockEndpoint("mock:commits");
+        // We expect at least one commit from the beginning of the repo
+        // Using startingSha=beginning means we should get all commits up to the limit
+        mock.expectedMinimumMessageCount(1);
+        mock.setResultWaitTime(60000);
+
+        // Wait for the route to be started and first poll to complete
+        Thread.sleep(5000);
+
+        mock.assertIsSatisfied();
+
+        // Verify headers are set
+        assertTrue(mock.getExchanges().size() > 0, "Should have received at least one commit");
+        assertNotNull(mock.getExchanges().get(0).getIn().getHeader(GitHub2Constants.GITHUB_COMMIT_SHA));
+        LOG.info("Received {} commits", mock.getExchanges().size());
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() {
+        return new RouteBuilder() {
+            @Override
+            public void configure() {
+                String branch = System.getProperty("github2.test.branch", "main");
+                LOG.info("Testing with branch: {}, owner: {}, repo: {}", branch, getRepoOwner(), getRepoName());
+                // Consume commits from the beginning to ensure we get some data
+                // Use a short initial delay and polling delay
+                fromF("github2:commit/%s?repoOwner=%s&repoName=%s&startingSha=beginning&initialDelay=0&delay=2000",
+                        branch, getRepoOwner(), getRepoName())
+                        .log("Received commit: ${header.CamelGitHubCommitSha}")
+                        .to("mock:commits");
+            }
+        };
+    }
+}
diff --git a/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2IntegrationTestSupport.java b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2IntegrationTestSupport.java
new file mode 100644
index 000000000000..0a1ec395a0b7
--- /dev/null
+++ b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2IntegrationTestSupport.java
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.integration;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.component.github2.GitHub2Component;
+import org.apache.camel.test.junit5.CamelTestSupport;
+import org.junit.jupiter.api.BeforeAll;
+
+/**
+ * Base class for GitHub2 integration tests.
+ *
+ * To run integration tests: mvn verify -Dgithub2.test.token=ghp_... -Dgithub2.test.repoOwner=owner
+ * -Dgithub2.test.repoName=repo
+ */
+public abstract class GitHub2IntegrationTestSupport extends CamelTestSupport {
+
+    protected static String oauthToken;
+    protected static String repoOwner;
+    protected static String repoName;
+
+    @BeforeAll
+    public static void checkConfiguration() {
+        oauthToken = System.getProperty("github2.test.token");
+        if (oauthToken == null || oauthToken.isEmpty()) {
+            throw new IllegalStateException(
+                    "github2.test.token system property is not set. " +
+                                            "Run tests with: mvn verify -Dgithub2.test.token=ghp_...");
+        }
+
+        repoOwner = System.getProperty("github2.test.repoOwner");
+        if (repoOwner == null || repoOwner.isEmpty()) {
+            throw new IllegalStateException(
+                    "github2.test.repoOwner system property is not set. " +
+                                            "Run tests with: mvn verify -Dgithub2.test.repoOwner=owner");
+        }
+
+        repoName = System.getProperty("github2.test.repoName");
+        if (repoName == null || repoName.isEmpty()) {
+            throw new IllegalStateException(
+                    "github2.test.repoName system property is not set. " +
+                                            "Run tests with: mvn verify -Dgithub2.test.repoName=repo");
+        }
+    }
+
+    @Override
+    protected CamelContext createCamelContext() throws Exception {
+        CamelContext context = super.createCamelContext();
+        GitHub2Component component = new GitHub2Component();
+        component.setOauthToken(oauthToken);
+        context.addComponent("github2", component);
+        return context;
+    }
+
+    protected String getRepoOwner() {
+        return repoOwner;
+    }
+
+    protected String getRepoName() {
+        return repoName;
+    }
+
+    protected String getOauthToken() {
+        return oauthToken;
+    }
+}
diff --git a/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2PullRequestConsumerIT.java b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2PullRequestConsumerIT.java
new file mode 100644
index 000000000000..444c060b425f
--- /dev/null
+++ b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2PullRequestConsumerIT.java
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.integration;
+
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
+import org.kohsuke.github.GHPullRequest;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+/**
+ * Integration test for GitHub2 Pull Request Consumer.
+ *
+ * To run this test: mvn verify -Dgithub2.test.token=ghp_... -Dgithub2.test.repoOwner=owner -Dgithub2.test.repoName=repo
+ *
+ * Note: This test requires the repository to have at least one open pull request.
+ */
+@EnabledIfSystemProperty(named = "github2.test.token", matches = ".+")
+public class GitHub2PullRequestConsumerIT extends GitHub2IntegrationTestSupport {
+
+    @Test
+    public void testConsumePullRequests() throws Exception {
+        MockEndpoint mock = getMockEndpoint("mock:pullrequests");
+        // We may or may not have open PRs, so just verify the route starts successfully
+        mock.expectedMinimumMessageCount(0);
+        mock.setResultWaitTime(10000);
+
+        mock.assertIsSatisfied();
+
+        // If we received any PRs, verify they are valid
+        if (!mock.getExchanges().isEmpty()) {
+            Object body = mock.getExchanges().get(0).getIn().getBody();
+            assertNotNull(body);
+            assertTrue(body instanceof GHPullRequest);
+        }
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() {
+        return new RouteBuilder() {
+            @Override
+            public void configure() {
+                fromF("github2:pullRequest?repoOwner=%s&repoName=%s",
+                        getRepoOwner(), getRepoName())
+                        .to("mock:pullrequests");
+            }
+        };
+    }
+}
diff --git a/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2TagConsumerIT.java b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2TagConsumerIT.java
new file mode 100644
index 000000000000..3469fb95e3c1
--- /dev/null
+++ b/components/camel-github2/src/test/java/org/apache/camel/component/github2/integration/GitHub2TagConsumerIT.java
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.github2.integration;
+
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
+import org.kohsuke.github.GHTag;
+
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+/**
+ * Integration test for GitHub2 Tag Consumer.
+ *
+ * To run this test: mvn verify -Dgithub2.test.token=ghp_... -Dgithub2.test.repoOwner=owner -Dgithub2.test.repoName=repo
+ *
+ * Note: This test requires the repository to have at least one tag.
+ */
+@EnabledIfSystemProperty(named = "github2.test.token", matches = ".+")
+public class GitHub2TagConsumerIT extends GitHub2IntegrationTestSupport {
+
+    @Test
+    public void testConsumeTags() throws Exception {
+        MockEndpoint mock = getMockEndpoint("mock:tags");
+        // We may or may not have tags, so just verify the route starts successfully
+        mock.expectedMinimumMessageCount(0);
+        mock.setResultWaitTime(10000);
+
+        mock.assertIsSatisfied();
+
+        // If we received any tags, verify they are valid
+        if (!mock.getExchanges().isEmpty()) {
+            Object body = mock.getExchanges().get(0).getIn().getBody();
+            assertNotNull(body);
+            assertTrue(body instanceof GHTag);
+        }
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() {
+        return new RouteBuilder() {
+            @Override
+            public void configure() {
+                fromF("github2:tag?repoOwner=%s&repoName=%s",
+                        getRepoOwner(), getRepoName())
+                        .to("mock:tags");
+            }
+        };
+    }
+}
diff --git a/components/pom.xml b/components/pom.xml
index 3f3a263acadc..772588193e3e 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -146,6 +146,7 @@
         <module>camel-geocoder</module>
         <module>camel-git</module>
         <module>camel-github</module>
+        <module>camel-github2</module>
         <module>camel-google</module>
         <module>camel-grape</module>
         <module>camel-graphql</module>
diff --git a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
index 6aaf75259e5f..ab0fb6607a2f 100644
--- a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
+++ b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
@@ -122,6 +122,7 @@ ftps
 geocoder
 git
 github
+github2
 google-bigquery
 google-bigquery-sql
 google-calendar
diff --git a/docs/components/modules/ROOT/examples/json/github2.json b/docs/components/modules/ROOT/examples/json/github2.json
new file mode 120000
index 000000000000..a08e63ce5376
--- /dev/null
+++ b/docs/components/modules/ROOT/examples/json/github2.json
@@ -0,0 +1 @@
+../../../../../../components/camel-github2/src/generated/resources/META-INF/org/apache/camel/component/github2/github2.json
\ No newline at end of file
diff --git a/docs/components/modules/others/examples/json/github2.json b/docs/components/modules/others/examples/json/github2.json
new file mode 120000
index 000000000000..ef0ef1ac1232
--- /dev/null
+++ b/docs/components/modules/others/examples/json/github2.json
@@ -0,0 +1 @@
+../../../../../../components/camel-github2/src/generated/resources/github2.json
\ No newline at end of file
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index c1f42b503abf..b0dc7eccc2ba 100644
--- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -1694,6 +1694,19 @@ public interface ComponentsBuilderFactory {
     static GithubComponentBuilderFactory.GithubComponentBuilder github() {
         return GithubComponentBuilderFactory.github();
     }
+    /**
+     * GitHub2 (camel-github2)
+     * Interact with the GitHub API.
+     * 
+     * Category: file,cloud,api
+     * Since: 4.18
+     * Maven coordinates: org.apache.camel:camel-github2
+     * 
+     * @return the dsl builder
+     */
+    static Github2ComponentBuilderFactory.Github2ComponentBuilder github2() {
+        return Github2ComponentBuilderFactory.github2();
+    }
     /**
      * Google BigQuery (camel-google-bigquery)
      * Google BigQuery data warehouse for analytics.
diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Github2ComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Github2ComponentBuilderFactory.java
new file mode 100644
index 000000000000..9cf25ca177ba
--- /dev/null
+++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/Github2ComponentBuilderFactory.java
@@ -0,0 +1,222 @@
+/* Generated by camel build tools - do NOT edit this file! */
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.builder.component.dsl;
+
+import javax.annotation.processing.Generated;
+import org.apache.camel.Component;
+import org.apache.camel.builder.component.AbstractComponentBuilder;
+import org.apache.camel.builder.component.ComponentBuilder;
+import org.apache.camel.component.github2.GitHub2Component;
+
+/**
+ * Interact with the GitHub API.
+ * 
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
+public interface Github2ComponentBuilderFactory {
+
+    /**
+     * GitHub2 (camel-github2)
+     * Interact with the GitHub API.
+     * 
+     * Category: file,cloud,api
+     * Since: 4.18
+     * Maven coordinates: org.apache.camel:camel-github2
+     * 
+     * @return the dsl builder
+     */
+    static Github2ComponentBuilder github2() {
+        return new Github2ComponentBuilderImpl();
+    }
+
+    /**
+     * Builder for the GitHub2 component.
+     */
+    interface Github2ComponentBuilder extends ComponentBuilder<GitHub2Component> {
+    
+        
+        /**
+         * Allows for bridging the consumer to the Camel routing Error Handler,
+         * which mean any exceptions (if possible) occurred while the Camel
+         * consumer is trying to pickup incoming messages, or the likes, will
+         * now be processed as a message and handled by the routing Error
+         * Handler. Important: This is only possible if the 3rd party component
+         * allows Camel to be alerted if an exception was thrown. Some
+         * components handle this internally only, and therefore
+         * bridgeErrorHandler is not possible. In other situations we may
+         * improve the Camel component to hook into the 3rd party component and
+         * make this possible for future releases. By default the consumer will
+         * use the org.apache.camel.spi.ExceptionHandler to deal with
+         * exceptions, that will be logged at WARN or ERROR level and ignored.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: consumer
+         * 
+         * @param bridgeErrorHandler the value to set
+         * @return the dsl builder
+         */
+        default Github2ComponentBuilder bridgeErrorHandler(boolean bridgeErrorHandler) {
+            doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
+            return this;
+        }
+    
+        
+        /**
+         * Whether the producer should be started lazy (on the first message).
+         * By starting lazy you can use this to allow CamelContext and routes to
+         * startup in situations where a producer may otherwise fail during
+         * starting and cause the route to fail being started. By deferring this
+         * startup to be lazy then the startup failure can be handled during
+         * routing messages via Camel's routing error handlers. Beware that when
+         * the first message is processed then creating and starting the
+         * producer may take a little time and prolong the total processing time
+         * of the processing.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param lazyStartProducer the value to set
+         * @return the dsl builder
+         */
+        default Github2ComponentBuilder lazyStartProducer(boolean lazyStartProducer) {
+            doSetProperty("lazyStartProducer", lazyStartProducer);
+            return this;
+        }
+    
+        /**
+         * GitHub API URL for GitHub Enterprise. Leave empty for github.com.
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: advanced
+         * 
+         * @param apiUrl the value to set
+         * @return the dsl builder
+         */
+        default Github2ComponentBuilder apiUrl(java.lang.String apiUrl) {
+            doSetProperty("apiUrl", apiUrl);
+            return this;
+        }
+    
+        
+        /**
+         * Whether autowiring is enabled. This is used for automatic autowiring
+         * options (the option must be marked as autowired) by looking up in the
+         * registry to find if there is a single instance of matching type,
+         * which then gets configured on the component. This can be used for
+         * automatic configuring JDBC data sources, JMS connection factories,
+         * AWS Clients, etc.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: advanced
+         * 
+         * @param autowiredEnabled the value to set
+         * @return the dsl builder
+         */
+        default Github2ComponentBuilder autowiredEnabled(boolean autowiredEnabled) {
+            doSetProperty("autowiredEnabled", autowiredEnabled);
+            return this;
+        }
+    
+        
+        /**
+         * Used for enabling or disabling all consumer based health checks from
+         * this component.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: health
+         * 
+         * @param healthCheckConsumerEnabled the value to set
+         * @return the dsl builder
+         */
+        default Github2ComponentBuilder healthCheckConsumerEnabled(boolean healthCheckConsumerEnabled) {
+            doSetProperty("healthCheckConsumerEnabled", healthCheckConsumerEnabled);
+            return this;
+        }
+    
+        
+        /**
+         * Used for enabling or disabling all producer based health checks from
+         * this component. Notice: Camel has by default disabled all producer
+         * based health-checks. You can turn on producer checks globally by
+         * setting camel.health.producersEnabled=true.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: health
+         * 
+         * @param healthCheckProducerEnabled the value to set
+         * @return the dsl builder
+         */
+        default Github2ComponentBuilder healthCheckProducerEnabled(boolean healthCheckProducerEnabled) {
+            doSetProperty("healthCheckProducerEnabled", healthCheckProducerEnabled);
+            return this;
+        }
+    
+        /**
+         * GitHub OAuth token. Must be configured on either component or
+         * endpoint.
+         * 
+         * The option is a: &lt;code&gt;java.lang.String&lt;/code&gt; type.
+         * 
+         * Group: security
+         * 
+         * @param oauthToken the value to set
+         * @return the dsl builder
+         */
+        default Github2ComponentBuilder oauthToken(java.lang.String oauthToken) {
+            doSetProperty("oauthToken", oauthToken);
+            return this;
+        }
+    }
+
+    class Github2ComponentBuilderImpl
+            extends AbstractComponentBuilder<GitHub2Component>
+            implements Github2ComponentBuilder {
+        @Override
+        protected GitHub2Component buildConcreteComponent() {
+            return new GitHub2Component();
+        }
+        @Override
+        protected boolean setPropertyOnComponent(
+                Component component,
+                String name,
+                Object value) {
+            switch (name) {
+            case "bridgeErrorHandler": ((GitHub2Component) component).setBridgeErrorHandler((boolean) value); return true;
+            case "lazyStartProducer": ((GitHub2Component) component).setLazyStartProducer((boolean) value); return true;
+            case "apiUrl": ((GitHub2Component) component).setApiUrl((java.lang.String) value); return true;
+            case "autowiredEnabled": ((GitHub2Component) component).setAutowiredEnabled((boolean) value); return true;
+            case "healthCheckConsumerEnabled": ((GitHub2Component) component).setHealthCheckConsumerEnabled((boolean) value); return true;
+            case "healthCheckProducerEnabled": ((GitHub2Component) component).setHealthCheckProducerEnabled((boolean) value); return true;
+            case "oauthToken": ((GitHub2Component) component).setOauthToken((java.lang.String) value); return true;
+            default: return false;
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
index ecf538fe0fa5..a2f261a6e026 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
@@ -129,6 +129,7 @@ public interface EndpointBuilderFactory
             org.apache.camel.builder.endpoint.dsl.FunctionGraphEndpointBuilderFactory.FunctionGraphBuilders,
             org.apache.camel.builder.endpoint.dsl.GeoCoderEndpointBuilderFactory.GeoCoderBuilders,
             org.apache.camel.builder.endpoint.dsl.GitEndpointBuilderFactory.GitBuilders,
+            org.apache.camel.builder.endpoint.dsl.GitHub2EndpointBuilderFactory.GitHub2Builders,
             org.apache.camel.builder.endpoint.dsl.GitHubEndpointBuilderFactory.GitHubBuilders,
             org.apache.camel.builder.endpoint.dsl.GlanceEndpointBuilderFactory.GlanceBuilders,
             org.apache.camel.builder.endpoint.dsl.GoogleBigQueryEndpointBuilderFactory.GoogleBigQueryBuilders,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
index f509af2c29ce..6a56ea77c3a7 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
@@ -126,6 +126,7 @@ public interface EndpointBuilders
             org.apache.camel.builder.endpoint.dsl.FunctionGraphEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.GeoCoderEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.GitEndpointBuilderFactory,
+            org.apache.camel.builder.endpoint.dsl.GitHub2EndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.GitHubEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.GlanceEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.GoogleBigQueryEndpointBuilderFactory,
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 7150a4a28931..4066cf56cae2 100644
--- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -5475,6 +5475,58 @@ public class StaticEndpointBuilders {
     public static GitHubEndpointBuilderFactory.GitHubEndpointBuilder github(String componentName, String path) {
         return GitHubEndpointBuilderFactory.endpointBuilder(componentName, path);
     }
+    /**
+     * GitHub2 (camel-github2)
+     * Interact with the GitHub API.
+     * 
+     * Category: file,cloud,api
+     * Since: 4.18
+     * Maven coordinates: org.apache.camel:camel-github2
+     * 
+     * Syntax: <code>github2:type/branchName</code>
+     * 
+     * Path parameter: type (required)
+     * What git operation to execute
+     * There are 10 enums and the value can be one of: CLOSEPULLREQUEST,
+     * PULLREQUESTCOMMENT, COMMIT, PULLREQUEST, TAG, PULLREQUESTSTATE,
+     * PULLREQUESTFILES, GETCOMMITFILE, CREATEISSUE, EVENT
+     * 
+     * Path parameter: branchName
+     * Name of branch
+     * 
+     * @param path type/branchName
+     * @return the dsl builder
+     */
+    public static GitHub2EndpointBuilderFactory.GitHub2EndpointBuilder github2(String path) {
+        return github2("github2", path);
+    }
+    /**
+     * GitHub2 (camel-github2)
+     * Interact with the GitHub API.
+     * 
+     * Category: file,cloud,api
+     * Since: 4.18
+     * Maven coordinates: org.apache.camel:camel-github2
+     * 
+     * Syntax: <code>github2:type/branchName</code>
+     * 
+     * Path parameter: type (required)
+     * What git operation to execute
+     * There are 10 enums and the value can be one of: CLOSEPULLREQUEST,
+     * PULLREQUESTCOMMENT, COMMIT, PULLREQUEST, TAG, PULLREQUESTSTATE,
+     * PULLREQUESTFILES, GETCOMMITFILE, CREATEISSUE, EVENT
+     * 
+     * Path parameter: branchName
+     * Name of branch
+     * 
+     * @param componentName to use a custom component name for the endpoint
+     * instead of the default name
+     * @param path type/branchName
+     * @return the dsl builder
+     */
+    public static GitHub2EndpointBuilderFactory.GitHub2EndpointBuilder github2(String componentName, String path) {
+        return GitHub2EndpointBuilderFactory.endpointBuilder(componentName, path);
+    }
     /**
      * Google BigQuery (camel-google-bigquery)
      * Google BigQuery data warehouse for analytics.
diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GitHub2EndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GitHub2EndpointBuilderFactory.java
new file mode 100644
index 000000000000..700af199dfc9
--- /dev/null
+++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/GitHub2EndpointBuilderFactory.java
@@ -0,0 +1,1293 @@
+/* Generated by camel build tools - do NOT edit this file! */
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.builder.endpoint.dsl;
+
+import java.util.*;
+import java.util.concurrent.*;
+import java.util.function.*;
+import java.util.stream.*;
+import javax.annotation.processing.Generated;
+import org.apache.camel.builder.EndpointConsumerBuilder;
+import org.apache.camel.builder.EndpointProducerBuilder;
+import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
+
+/**
+ * Interact with the GitHub API.
+ * 
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
+public interface GitHub2EndpointBuilderFactory {
+
+    /**
+     * Builder for endpoint consumers for the GitHub2 component.
+     */
+    public interface GitHub2EndpointConsumerBuilder
+            extends
+                EndpointConsumerBuilder {
+        default AdvancedGitHub2EndpointConsumerBuilder advanced() {
+            return (AdvancedGitHub2EndpointConsumerBuilder) this;
+        }
+        /**
+         * GitHub repository name.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Required: true
+         * Group: common
+         * 
+         * @param repoName the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder repoName(String repoName) {
+            doSetProperty("repoName", repoName);
+            return this;
+        }
+        /**
+         * GitHub repository owner (organization).
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Required: true
+         * Group: common
+         * 
+         * @param repoOwner the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder repoOwner(String repoOwner) {
+            doSetProperty("repoOwner", repoOwner);
+            return this;
+        }
+        /**
+         * Whether the commit consumer should store the commit message or the
+         * raw org.kohsuke.github.GHCommit object as the message body.
+         * 
+         * The option is a: <code>boolean</code> type.
+         * 
+         * Default: true
+         * Group: consumer
+         * 
+         * @param commitMessageAsBody the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder commitMessageAsBody(boolean commitMessageAsBody) {
+            doSetProperty("commitMessageAsBody", commitMessageAsBody);
+            return this;
+        }
+        /**
+         * Whether the commit consumer should store the commit message or the
+         * raw org.kohsuke.github.GHCommit object as the message body.
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: true
+         * Group: consumer
+         * 
+         * @param commitMessageAsBody the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder commitMessageAsBody(String commitMessageAsBody) {
+            doSetProperty("commitMessageAsBody", commitMessageAsBody);
+            return this;
+        }
+        /**
+         * If the polling consumer did not poll any files, you can enable this
+         * option to send an empty message (no body) instead.
+         * 
+         * The option is a: <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: consumer
+         * 
+         * @param sendEmptyMessageWhenIdle the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder sendEmptyMessageWhenIdle(boolean sendEmptyMessageWhenIdle) {
+            doSetProperty("sendEmptyMessageWhenIdle", sendEmptyMessageWhenIdle);
+            return this;
+        }
+        /**
+         * If the polling consumer did not poll any files, you can enable this
+         * option to send an empty message (no body) instead.
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: consumer
+         * 
+         * @param sendEmptyMessageWhenIdle the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder sendEmptyMessageWhenIdle(String sendEmptyMessageWhenIdle) {
+            doSetProperty("sendEmptyMessageWhenIdle", sendEmptyMessageWhenIdle);
+            return this;
+        }
+        /**
+         * The starting sha to use for polling commits with the commit consumer.
+         * The value can either be a sha for the sha to start from, or use
+         * beginning to start from the beginning, or last to start from the last
+         * commit.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Default: last
+         * Group: consumer
+         * 
+         * @param startingSha the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder startingSha(String startingSha) {
+            doSetProperty("startingSha", startingSha);
+            return this;
+        }
+        /**
+         * The number of subsequent error polls (failed due some error) that
+         * should happen before the backoffMultipler should kick-in.
+         * 
+         * The option is a: <code>int</code> type.
+         * 
+         * Group: scheduler
+         * 
+         * @param backoffErrorThreshold the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder backoffErrorThreshold(int backoffErrorThreshold) {
+            doSetProperty("backoffErrorThreshold", backoffErrorThreshold);
+            return this;
+        }
+        /**
+         * The number of subsequent error polls (failed due some error) that
+         * should happen before the backoffMultipler should kick-in.
+         * 
+         * The option will be converted to a <code>int</code> type.
+         * 
+         * Group: scheduler
+         * 
+         * @param backoffErrorThreshold the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder backoffErrorThreshold(String backoffErrorThreshold) {
+            doSetProperty("backoffErrorThreshold", backoffErrorThreshold);
+            return this;
+        }
+        /**
+         * The number of subsequent idle polls that should happen before the
+         * backoffMultipler should kick-in.
+         * 
+         * The option is a: <code>int</code> type.
+         * 
+         * Group: scheduler
+         * 
+         * @param backoffIdleThreshold the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder backoffIdleThreshold(int backoffIdleThreshold) {
+            doSetProperty("backoffIdleThreshold", backoffIdleThreshold);
+            return this;
+        }
+        /**
+         * The number of subsequent idle polls that should happen before the
+         * backoffMultipler should kick-in.
+         * 
+         * The option will be converted to a <code>int</code> type.
+         * 
+         * Group: scheduler
+         * 
+         * @param backoffIdleThreshold the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder backoffIdleThreshold(String backoffIdleThreshold) {
+            doSetProperty("backoffIdleThreshold", backoffIdleThreshold);
+            return this;
+        }
+        /**
+         * To let the scheduled polling consumer backoff if there has been a
+         * number of subsequent idles/errors in a row. The multiplier is then
+         * the number of polls that will be skipped before the next actual
+         * attempt is happening again. When this option is in use then
+         * backoffIdleThreshold and/or backoffErrorThreshold must also be
+         * configured.
+         * 
+         * The option is a: <code>int</code> type.
+         * 
+         * Group: scheduler
+         * 
+         * @param backoffMultiplier the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder backoffMultiplier(int backoffMultiplier) {
+            doSetProperty("backoffMultiplier", backoffMultiplier);
+            return this;
+        }
+        /**
+         * To let the scheduled polling consumer backoff if there has been a
+         * number of subsequent idles/errors in a row. The multiplier is then
+         * the number of polls that will be skipped before the next actual
+         * attempt is happening again. When this option is in use then
+         * backoffIdleThreshold and/or backoffErrorThreshold must also be
+         * configured.
+         * 
+         * The option will be converted to a <code>int</code> type.
+         * 
+         * Group: scheduler
+         * 
+         * @param backoffMultiplier the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder backoffMultiplier(String backoffMultiplier) {
+            doSetProperty("backoffMultiplier", backoffMultiplier);
+            return this;
+        }
+        /**
+         * Milliseconds before the next poll.
+         * 
+         * The option is a: <code>long</code> type.
+         * 
+         * Default: 500
+         * Group: scheduler
+         * 
+         * @param delay the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder delay(long delay) {
+            doSetProperty("delay", delay);
+            return this;
+        }
+        /**
+         * Milliseconds before the next poll.
+         * 
+         * The option will be converted to a <code>long</code> type.
+         * 
+         * Default: 500
+         * Group: scheduler
+         * 
+         * @param delay the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder delay(String delay) {
+            doSetProperty("delay", delay);
+            return this;
+        }
+        /**
+         * If greedy is enabled, then the ScheduledPollConsumer will run
+         * immediately again, if the previous run polled 1 or more messages.
+         * 
+         * The option is a: <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: scheduler
+         * 
+         * @param greedy the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder greedy(boolean greedy) {
+            doSetProperty("greedy", greedy);
+            return this;
+        }
+        /**
+         * If greedy is enabled, then the ScheduledPollConsumer will run
+         * immediately again, if the previous run polled 1 or more messages.
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: scheduler
+         * 
+         * @param greedy the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder greedy(String greedy) {
+            doSetProperty("greedy", greedy);
+            return this;
+        }
+        /**
+         * Milliseconds before the first poll starts.
+         * 
+         * The option is a: <code>long</code> type.
+         * 
+         * Default: 1000
+         * Group: scheduler
+         * 
+         * @param initialDelay the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder initialDelay(long initialDelay) {
+            doSetProperty("initialDelay", initialDelay);
+            return this;
+        }
+        /**
+         * Milliseconds before the first poll starts.
+         * 
+         * The option will be converted to a <code>long</code> type.
+         * 
+         * Default: 1000
+         * Group: scheduler
+         * 
+         * @param initialDelay the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder initialDelay(String initialDelay) {
+            doSetProperty("initialDelay", initialDelay);
+            return this;
+        }
+        /**
+         * Specifies a maximum limit of number of fires. So if you set it to 1,
+         * the scheduler will only fire once. If you set it to 5, it will only
+         * fire five times. A value of zero or negative means fire forever.
+         * 
+         * The option is a: <code>long</code> type.
+         * 
+         * Default: 0
+         * Group: scheduler
+         * 
+         * @param repeatCount the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder repeatCount(long repeatCount) {
+            doSetProperty("repeatCount", repeatCount);
+            return this;
+        }
+        /**
+         * Specifies a maximum limit of number of fires. So if you set it to 1,
+         * the scheduler will only fire once. If you set it to 5, it will only
+         * fire five times. A value of zero or negative means fire forever.
+         * 
+         * The option will be converted to a <code>long</code> type.
+         * 
+         * Default: 0
+         * Group: scheduler
+         * 
+         * @param repeatCount the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder repeatCount(String repeatCount) {
+            doSetProperty("repeatCount", repeatCount);
+            return this;
+        }
+        /**
+         * The consumer logs a start/complete log line when it polls. This
+         * option allows you to configure the logging level for that.
+         * 
+         * The option is a: <code>org.apache.camel.LoggingLevel</code> type.
+         * 
+         * Default: TRACE
+         * Group: scheduler
+         * 
+         * @param runLoggingLevel the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder runLoggingLevel(org.apache.camel.LoggingLevel runLoggingLevel) {
+            doSetProperty("runLoggingLevel", runLoggingLevel);
+            return this;
+        }
+        /**
+         * The consumer logs a start/complete log line when it polls. This
+         * option allows you to configure the logging level for that.
+         * 
+         * The option will be converted to a
+         * <code>org.apache.camel.LoggingLevel</code> type.
+         * 
+         * Default: TRACE
+         * Group: scheduler
+         * 
+         * @param runLoggingLevel the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder runLoggingLevel(String runLoggingLevel) {
+            doSetProperty("runLoggingLevel", runLoggingLevel);
+            return this;
+        }
+        /**
+         * Allows for configuring a custom/shared thread pool to use for the
+         * consumer. By default each consumer has its own single threaded thread
+         * pool.
+         * 
+         * The option is a:
+         * <code>java.util.concurrent.ScheduledExecutorService</code> type.
+         * 
+         * Group: scheduler
+         * 
+         * @param scheduledExecutorService the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder scheduledExecutorService(ScheduledExecutorService scheduledExecutorService) {
+            doSetProperty("scheduledExecutorService", scheduledExecutorService);
+            return this;
+        }
+        /**
+         * Allows for configuring a custom/shared thread pool to use for the
+         * consumer. By default each consumer has its own single threaded thread
+         * pool.
+         * 
+         * The option will be converted to a
+         * <code>java.util.concurrent.ScheduledExecutorService</code> type.
+         * 
+         * Group: scheduler
+         * 
+         * @param scheduledExecutorService the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder scheduledExecutorService(String scheduledExecutorService) {
+            doSetProperty("scheduledExecutorService", scheduledExecutorService);
+            return this;
+        }
+        /**
+         * To use a cron scheduler from either camel-spring or camel-quartz
+         * component. Use value spring or quartz for built in scheduler.
+         * 
+         * The option is a: <code>java.lang.Object</code> type.
+         * 
+         * Default: none
+         * Group: scheduler
+         * 
+         * @param scheduler the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder scheduler(Object scheduler) {
+            doSetProperty("scheduler", scheduler);
+            return this;
+        }
+        /**
+         * To use a cron scheduler from either camel-spring or camel-quartz
+         * component. Use value spring or quartz for built in scheduler.
+         * 
+         * The option will be converted to a <code>java.lang.Object</code> type.
+         * 
+         * Default: none
+         * Group: scheduler
+         * 
+         * @param scheduler the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder scheduler(String scheduler) {
+            doSetProperty("scheduler", scheduler);
+            return this;
+        }
+        /**
+         * To configure additional properties when using a custom scheduler or
+         * any of the Quartz, Spring based scheduler. This is a multi-value
+         * option with prefix: scheduler.
+         * 
+         * The option is a: <code>java.util.Map&lt;java.lang.String,
+         * java.lang.Object&gt;</code> type.
+         * The option is multivalued, and you can use the
+         * schedulerProperties(String, Object) method to add a value (call the
+         * method multiple times to set more values).
+         * 
+         * Group: scheduler
+         * 
+         * @param key the option key
+         * @param value the option value
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder schedulerProperties(String key, Object value) {
+            doSetMultiValueProperty("schedulerProperties", "scheduler." + key, value);
+            return this;
+        }
+        /**
+         * To configure additional properties when using a custom scheduler or
+         * any of the Quartz, Spring based scheduler. This is a multi-value
+         * option with prefix: scheduler.
+         * 
+         * The option is a: <code>java.util.Map&lt;java.lang.String,
+         * java.lang.Object&gt;</code> type.
+         * The option is multivalued, and you can use the
+         * schedulerProperties(String, Object) method to add a value (call the
+         * method multiple times to set more values).
+         * 
+         * Group: scheduler
+         * 
+         * @param values the values
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder schedulerProperties(Map values) {
+            doSetMultiValueProperties("schedulerProperties", "scheduler.", values);
+            return this;
+        }
+        /**
+         * Whether the scheduler should be auto started.
+         * 
+         * The option is a: <code>boolean</code> type.
+         * 
+         * Default: true
+         * Group: scheduler
+         * 
+         * @param startScheduler the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder startScheduler(boolean startScheduler) {
+            doSetProperty("startScheduler", startScheduler);
+            return this;
+        }
+        /**
+         * Whether the scheduler should be auto started.
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: true
+         * Group: scheduler
+         * 
+         * @param startScheduler the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder startScheduler(String startScheduler) {
+            doSetProperty("startScheduler", startScheduler);
+            return this;
+        }
+        /**
+         * Time unit for initialDelay and delay options.
+         * 
+         * The option is a: <code>java.util.concurrent.TimeUnit</code> type.
+         * 
+         * Default: MILLISECONDS
+         * Group: scheduler
+         * 
+         * @param timeUnit the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder timeUnit(TimeUnit timeUnit) {
+            doSetProperty("timeUnit", timeUnit);
+            return this;
+        }
+        /**
+         * Time unit for initialDelay and delay options.
+         * 
+         * The option will be converted to a
+         * <code>java.util.concurrent.TimeUnit</code> type.
+         * 
+         * Default: MILLISECONDS
+         * Group: scheduler
+         * 
+         * @param timeUnit the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder timeUnit(String timeUnit) {
+            doSetProperty("timeUnit", timeUnit);
+            return this;
+        }
+        /**
+         * Controls if fixed delay or fixed rate is used. See
+         * ScheduledExecutorService in JDK for details.
+         * 
+         * The option is a: <code>boolean</code> type.
+         * 
+         * Default: true
+         * Group: scheduler
+         * 
+         * @param useFixedDelay the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder useFixedDelay(boolean useFixedDelay) {
+            doSetProperty("useFixedDelay", useFixedDelay);
+            return this;
+        }
+        /**
+         * Controls if fixed delay or fixed rate is used. See
+         * ScheduledExecutorService in JDK for details.
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: true
+         * Group: scheduler
+         * 
+         * @param useFixedDelay the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder useFixedDelay(String useFixedDelay) {
+            doSetProperty("useFixedDelay", useFixedDelay);
+            return this;
+        }
+        /**
+         * GitHub OAuth token. Must be configured on either component or
+         * endpoint.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: security
+         * 
+         * @param oauthToken the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointConsumerBuilder oauthToken(String oauthToken) {
+            doSetProperty("oauthToken", oauthToken);
+            return this;
+        }
+    }
+
+    /**
+     * Advanced builder for endpoint consumers for the GitHub2 component.
+     */
+    public interface AdvancedGitHub2EndpointConsumerBuilder
+            extends
+                EndpointConsumerBuilder {
+        default GitHub2EndpointConsumerBuilder basic() {
+            return (GitHub2EndpointConsumerBuilder) this;
+        }
+        /**
+         * Allows for bridging the consumer to the Camel routing Error Handler,
+         * which mean any exceptions (if possible) occurred while the Camel
+         * consumer is trying to pickup incoming messages, or the likes, will
+         * now be processed as a message and handled by the routing Error
+         * Handler. Important: This is only possible if the 3rd party component
+         * allows Camel to be alerted if an exception was thrown. Some
+         * components handle this internally only, and therefore
+         * bridgeErrorHandler is not possible. In other situations we may
+         * improve the Camel component to hook into the 3rd party component and
+         * make this possible for future releases. By default the consumer will
+         * use the org.apache.camel.spi.ExceptionHandler to deal with
+         * exceptions, that will be logged at WARN or ERROR level and ignored.
+         * 
+         * The option is a: <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: consumer (advanced)
+         * 
+         * @param bridgeErrorHandler the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler) {
+            doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
+            return this;
+        }
+        /**
+         * Allows for bridging the consumer to the Camel routing Error Handler,
+         * which mean any exceptions (if possible) occurred while the Camel
+         * consumer is trying to pickup incoming messages, or the likes, will
+         * now be processed as a message and handled by the routing Error
+         * Handler. Important: This is only possible if the 3rd party component
+         * allows Camel to be alerted if an exception was thrown. Some
+         * components handle this internally only, and therefore
+         * bridgeErrorHandler is not possible. In other situations we may
+         * improve the Camel component to hook into the 3rd party component and
+         * make this possible for future releases. By default the consumer will
+         * use the org.apache.camel.spi.ExceptionHandler to deal with
+         * exceptions, that will be logged at WARN or ERROR level and ignored.
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: consumer (advanced)
+         * 
+         * @param bridgeErrorHandler the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler) {
+            doSetProperty("bridgeErrorHandler", bridgeErrorHandler);
+            return this;
+        }
+        /**
+         * To specify a custom strategy that configures how the EventsConsumer
+         * fetches events.
+         * 
+         * The option is a:
+         * <code>org.apache.camel.component.github2.event.GitHub2EventFetchStrategy</code> type.
+         * 
+         * Group: consumer (advanced)
+         * 
+         * @param eventFetchStrategy the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder eventFetchStrategy(org.apache.camel.component.github2.event.GitHub2EventFetchStrategy eventFetchStrategy) {
+            doSetProperty("eventFetchStrategy", eventFetchStrategy);
+            return this;
+        }
+        /**
+         * To specify a custom strategy that configures how the EventsConsumer
+         * fetches events.
+         * 
+         * The option will be converted to a
+         * <code>org.apache.camel.component.github2.event.GitHub2EventFetchStrategy</code> type.
+         * 
+         * Group: consumer (advanced)
+         * 
+         * @param eventFetchStrategy the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder eventFetchStrategy(String eventFetchStrategy) {
+            doSetProperty("eventFetchStrategy", eventFetchStrategy);
+            return this;
+        }
+        /**
+         * To let the consumer use a custom ExceptionHandler. Notice if the
+         * option bridgeErrorHandler is enabled then this option is not in use.
+         * By default the consumer will deal with exceptions, that will be
+         * logged at WARN or ERROR level and ignored.
+         * 
+         * The option is a: <code>org.apache.camel.spi.ExceptionHandler</code>
+         * type.
+         * 
+         * Group: consumer (advanced)
+         * 
+         * @param exceptionHandler the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder exceptionHandler(org.apache.camel.spi.ExceptionHandler exceptionHandler) {
+            doSetProperty("exceptionHandler", exceptionHandler);
+            return this;
+        }
+        /**
+         * To let the consumer use a custom ExceptionHandler. Notice if the
+         * option bridgeErrorHandler is enabled then this option is not in use.
+         * By default the consumer will deal with exceptions, that will be
+         * logged at WARN or ERROR level and ignored.
+         * 
+         * The option will be converted to a
+         * <code>org.apache.camel.spi.ExceptionHandler</code> type.
+         * 
+         * Group: consumer (advanced)
+         * 
+         * @param exceptionHandler the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder exceptionHandler(String exceptionHandler) {
+            doSetProperty("exceptionHandler", exceptionHandler);
+            return this;
+        }
+        /**
+         * Sets the exchange pattern when the consumer creates an exchange.
+         * 
+         * The option is a: <code>org.apache.camel.ExchangePattern</code> type.
+         * 
+         * Group: consumer (advanced)
+         * 
+         * @param exchangePattern the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder exchangePattern(org.apache.camel.ExchangePattern exchangePattern) {
+            doSetProperty("exchangePattern", exchangePattern);
+            return this;
+        }
+        /**
+         * Sets the exchange pattern when the consumer creates an exchange.
+         * 
+         * The option will be converted to a
+         * <code>org.apache.camel.ExchangePattern</code> type.
+         * 
+         * Group: consumer (advanced)
+         * 
+         * @param exchangePattern the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder exchangePattern(String exchangePattern) {
+            doSetProperty("exchangePattern", exchangePattern);
+            return this;
+        }
+        /**
+         * A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing
+         * you to provide your custom implementation to control error handling
+         * usually occurred during the poll operation before an Exchange have
+         * been created and being routed in Camel.
+         * 
+         * The option is a:
+         * <code>org.apache.camel.spi.PollingConsumerPollStrategy</code> type.
+         * 
+         * Group: consumer (advanced)
+         * 
+         * @param pollStrategy the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder pollStrategy(org.apache.camel.spi.PollingConsumerPollStrategy pollStrategy) {
+            doSetProperty("pollStrategy", pollStrategy);
+            return this;
+        }
+        /**
+         * A pluggable org.apache.camel.PollingConsumerPollingStrategy allowing
+         * you to provide your custom implementation to control error handling
+         * usually occurred during the poll operation before an Exchange have
+         * been created and being routed in Camel.
+         * 
+         * The option will be converted to a
+         * <code>org.apache.camel.spi.PollingConsumerPollStrategy</code> type.
+         * 
+         * Group: consumer (advanced)
+         * 
+         * @param pollStrategy the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder pollStrategy(String pollStrategy) {
+            doSetProperty("pollStrategy", pollStrategy);
+            return this;
+        }
+        /**
+         * GitHub API URL for GitHub Enterprise. Leave empty for github.com.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: advanced
+         * 
+         * @param apiUrl the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointConsumerBuilder apiUrl(String apiUrl) {
+            doSetProperty("apiUrl", apiUrl);
+            return this;
+        }
+    }
+
+    /**
+     * Builder for endpoint producers for the GitHub2 component.
+     */
+    public interface GitHub2EndpointProducerBuilder
+            extends
+                EndpointProducerBuilder {
+        default AdvancedGitHub2EndpointProducerBuilder advanced() {
+            return (AdvancedGitHub2EndpointProducerBuilder) this;
+        }
+
+        /**
+         * GitHub repository name.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Required: true
+         * Group: common
+         * 
+         * @param repoName the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointProducerBuilder repoName(String repoName) {
+            doSetProperty("repoName", repoName);
+            return this;
+        }
+        /**
+         * GitHub repository owner (organization).
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Required: true
+         * Group: common
+         * 
+         * @param repoOwner the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointProducerBuilder repoOwner(String repoOwner) {
+            doSetProperty("repoOwner", repoOwner);
+            return this;
+        }
+        /**
+         * To use the given encoding when getting a git commit file.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         * 
+         * @param encoding the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointProducerBuilder encoding(String encoding) {
+            doSetProperty("encoding", encoding);
+            return this;
+        }
+        /**
+         * To set git commit status state.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         * 
+         * @param state the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointProducerBuilder state(String state) {
+            doSetProperty("state", state);
+            return this;
+        }
+        /**
+         * To set git commit status target url.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: producer
+         * 
+         * @param targetUrl the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointProducerBuilder targetUrl(String targetUrl) {
+            doSetProperty("targetUrl", targetUrl);
+            return this;
+        }
+        /**
+         * GitHub OAuth token. Must be configured on either component or
+         * endpoint.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: security
+         * 
+         * @param oauthToken the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointProducerBuilder oauthToken(String oauthToken) {
+            doSetProperty("oauthToken", oauthToken);
+            return this;
+        }
+    }
+
+    /**
+     * Advanced builder for endpoint producers for the GitHub2 component.
+     */
+    public interface AdvancedGitHub2EndpointProducerBuilder extends EndpointProducerBuilder {
+        default GitHub2EndpointProducerBuilder basic() {
+            return (GitHub2EndpointProducerBuilder) this;
+        }
+
+        /**
+         * Whether the producer should be started lazy (on the first message).
+         * By starting lazy you can use this to allow CamelContext and routes to
+         * startup in situations where a producer may otherwise fail during
+         * starting and cause the route to fail being started. By deferring this
+         * startup to be lazy then the startup failure can be handled during
+         * routing messages via Camel's routing error handlers. Beware that when
+         * the first message is processed then creating and starting the
+         * producer may take a little time and prolong the total processing time
+         * of the processing.
+         * 
+         * The option is a: <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: producer (advanced)
+         * 
+         * @param lazyStartProducer the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointProducerBuilder lazyStartProducer(boolean lazyStartProducer) {
+            doSetProperty("lazyStartProducer", lazyStartProducer);
+            return this;
+        }
+        /**
+         * Whether the producer should be started lazy (on the first message).
+         * By starting lazy you can use this to allow CamelContext and routes to
+         * startup in situations where a producer may otherwise fail during
+         * starting and cause the route to fail being started. By deferring this
+         * startup to be lazy then the startup failure can be handled during
+         * routing messages via Camel's routing error handlers. Beware that when
+         * the first message is processed then creating and starting the
+         * producer may take a little time and prolong the total processing time
+         * of the processing.
+         * 
+         * The option will be converted to a <code>boolean</code> type.
+         * 
+         * Default: false
+         * Group: producer (advanced)
+         * 
+         * @param lazyStartProducer the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointProducerBuilder lazyStartProducer(String lazyStartProducer) {
+            doSetProperty("lazyStartProducer", lazyStartProducer);
+            return this;
+        }
+        /**
+         * GitHub API URL for GitHub Enterprise. Leave empty for github.com.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: advanced
+         * 
+         * @param apiUrl the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointProducerBuilder apiUrl(String apiUrl) {
+            doSetProperty("apiUrl", apiUrl);
+            return this;
+        }
+    }
+
+    /**
+     * Builder for endpoint for the GitHub2 component.
+     */
+    public interface GitHub2EndpointBuilder
+            extends
+                GitHub2EndpointConsumerBuilder,
+                GitHub2EndpointProducerBuilder {
+        default AdvancedGitHub2EndpointBuilder advanced() {
+            return (AdvancedGitHub2EndpointBuilder) this;
+        }
+
+        /**
+         * GitHub repository name.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Required: true
+         * Group: common
+         * 
+         * @param repoName the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointBuilder repoName(String repoName) {
+            doSetProperty("repoName", repoName);
+            return this;
+        }
+        /**
+         * GitHub repository owner (organization).
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Required: true
+         * Group: common
+         * 
+         * @param repoOwner the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointBuilder repoOwner(String repoOwner) {
+            doSetProperty("repoOwner", repoOwner);
+            return this;
+        }
+        /**
+         * GitHub OAuth token. Must be configured on either component or
+         * endpoint.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: security
+         * 
+         * @param oauthToken the value to set
+         * @return the dsl builder
+         */
+        default GitHub2EndpointBuilder oauthToken(String oauthToken) {
+            doSetProperty("oauthToken", oauthToken);
+            return this;
+        }
+    }
+
+    /**
+     * Advanced builder for endpoint for the GitHub2 component.
+     */
+    public interface AdvancedGitHub2EndpointBuilder
+            extends
+                AdvancedGitHub2EndpointConsumerBuilder,
+                AdvancedGitHub2EndpointProducerBuilder {
+        default GitHub2EndpointBuilder basic() {
+            return (GitHub2EndpointBuilder) this;
+        }
+
+        /**
+         * GitHub API URL for GitHub Enterprise. Leave empty for github.com.
+         * 
+         * The option is a: <code>java.lang.String</code> type.
+         * 
+         * Group: advanced
+         * 
+         * @param apiUrl the value to set
+         * @return the dsl builder
+         */
+        default AdvancedGitHub2EndpointBuilder apiUrl(String apiUrl) {
+            doSetProperty("apiUrl", apiUrl);
+            return this;
+        }
+    }
+
+    public interface GitHub2Builders {
+        /**
+         * GitHub2 (camel-github2)
+         * Interact with the GitHub API.
+         * 
+         * Category: file,cloud,api
+         * Since: 4.18
+         * Maven coordinates: org.apache.camel:camel-github2
+         * 
+         * @return the dsl builder for the headers' name.
+         */
+        default GitHub2HeaderNameBuilder github2() {
+            return GitHub2HeaderNameBuilder.INSTANCE;
+        }
+        /**
+         * GitHub2 (camel-github2)
+         * Interact with the GitHub API.
+         * 
+         * Category: file,cloud,api
+         * Since: 4.18
+         * Maven coordinates: org.apache.camel:camel-github2
+         * 
+         * Syntax: <code>github2:type/branchName</code>
+         * 
+         * Path parameter: type (required)
+         * What git operation to execute
+         * There are 10 enums and the value can be one of: CLOSEPULLREQUEST,
+         * PULLREQUESTCOMMENT, COMMIT, PULLREQUEST, TAG, PULLREQUESTSTATE,
+         * PULLREQUESTFILES, GETCOMMITFILE, CREATEISSUE, EVENT
+         * 
+         * Path parameter: branchName
+         * Name of branch
+         * 
+         * @param path type/branchName
+         * @return the dsl builder
+         */
+        default GitHub2EndpointBuilder github2(String path) {
+            return GitHub2EndpointBuilderFactory.endpointBuilder("github2", path);
+        }
+        /**
+         * GitHub2 (camel-github2)
+         * Interact with the GitHub API.
+         * 
+         * Category: file,cloud,api
+         * Since: 4.18
+         * Maven coordinates: org.apache.camel:camel-github2
+         * 
+         * Syntax: <code>github2:type/branchName</code>
+         * 
+         * Path parameter: type (required)
+         * What git operation to execute
+         * There are 10 enums and the value can be one of: CLOSEPULLREQUEST,
+         * PULLREQUESTCOMMENT, COMMIT, PULLREQUEST, TAG, PULLREQUESTSTATE,
+         * PULLREQUESTFILES, GETCOMMITFILE, CREATEISSUE, EVENT
+         * 
+         * Path parameter: branchName
+         * Name of branch
+         * 
+         * @param componentName to use a custom component name for the endpoint
+         * instead of the default name
+         * @param path type/branchName
+         * @return the dsl builder
+         */
+        default GitHub2EndpointBuilder github2(String componentName, String path) {
+            return GitHub2EndpointBuilderFactory.endpointBuilder(componentName, path);
+        }
+
+    }
+    /**
+     * The builder of headers' name for the GitHub2 component.
+     */
+    public static class GitHub2HeaderNameBuilder {
+        /**
+         * The internal instance of the builder used to access to all the
+         * methods representing the name of headers.
+         */
+        private static final GitHub2HeaderNameBuilder INSTANCE = new GitHub2HeaderNameBuilder();
+
+        /**
+         * The pull request.
+         * 
+         * The option is a: {@code org.kohsuke.github.GHPullRequest or Integer}
+         * type.
+         * 
+         * Group: common
+         * 
+         * @return the name of the header {@code GitHubPullRequest}.
+         */
+        public String gitHubPullRequest() {
+            return "GitHubPullRequest";
+        }
+        /**
+         * The id of the comment to reply to.
+         * 
+         * The option is a: {@code Long} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code GitHubInResponseTo}.
+         */
+        public String gitHubInResponseTo() {
+            return "GitHubInResponseTo";
+        }
+        /**
+         * The sha of the head of the pull request.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: common
+         * 
+         * @return the name of the header {@code
+         * GitHubPullRequestHeadCommitSHA}.
+         */
+        public String gitHubPullRequestHeadCommitSHA() {
+            return "GitHubPullRequestHeadCommitSHA";
+        }
+        /**
+         * The title of the issue.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: producer
+         * 
+         * @return the name of the header {@code GitHubIssueTitle}.
+         */
+        public String gitHubIssueTitle() {
+            return "GitHubIssueTitle";
+        }
+        /**
+         * The commit author.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: consumer
+         * 
+         * @return the name of the header {@code GitHubCommitAuthor}.
+         */
+        public String gitHubCommitAuthor() {
+            return "CamelGitHubCommitAuthor";
+        }
+        /**
+         * The committer name.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: consumer
+         * 
+         * @return the name of the header {@code GitHubCommitCommitter}.
+         */
+        public String gitHubCommitCommitter() {
+            return "CamelGitHubCommitCommitter";
+        }
+        /**
+         * The commit sha.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: consumer
+         * 
+         * @return the name of the header {@code GitHubCommitSha}.
+         */
+        public String gitHubCommitSha() {
+            return "CamelGitHubCommitSha";
+        }
+        /**
+         * The commit URL.
+         * 
+         * The option is a: {@code String} type.
+         * 
+         * Group: consumer
+         * 
+         * @return the name of the header {@code GitHubCommitUrl}.
+         */
+        public String gitHubCommitUrl() {
+            return "CamelGitHubCommitUrl";
+        }
+        /**
+         * The event payload.
+         * 
+         * The option is a: {@code org.kohsuke.github.GHEventPayload} type.
+         * 
+         * Group: consumer
+         * 
+         * @return the name of the header {@code GitHubEventPayload}.
+         */
+        public String gitHubEventPayload() {
+            return "CamelGitHubEventPayload";
+        }
+    }
+    static GitHub2EndpointBuilder endpointBuilder(String componentName, String path) {
+        class GitHub2EndpointBuilderImpl extends AbstractEndpointBuilder implements GitHub2EndpointBuilder, AdvancedGitHub2EndpointBuilder {
+            public GitHub2EndpointBuilderImpl(String path) {
+                super(componentName, path);
+            }
+        }
+        return new GitHub2EndpointBuilderImpl(path);
+    }
+}
\ No newline at end of file
diff --git a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
index 00d0ef8f4e3e..81f87b9f9bfa 100644
--- a/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
+++ b/dsl/camel-kamelet-main/src/generated/resources/camel-component-known-dependencies.properties
@@ -138,6 +138,7 @@ org.apache.camel.component.freemarker.FreemarkerComponent=camel:freemarker
 org.apache.camel.component.geocoder.GeoCoderComponent=camel:geocoder
 org.apache.camel.component.git.GitComponent=camel:git
 org.apache.camel.component.github.GitHubComponent=camel:github
+org.apache.camel.component.github2.GitHub2Component=camel:github2
 org.apache.camel.component.google.bigquery.GoogleBigQueryComponent=camel:google-bigquery
 org.apache.camel.component.google.bigquery.sql.GoogleBigQuerySQLComponent=camel:google-bigquery
 org.apache.camel.component.google.calendar.GoogleCalendarComponent=camel:google-calendar
diff --git a/parent/pom.xml b/parent/pom.xml
index d3b97c2a175d..123da249aef2 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -158,6 +158,8 @@
         <eddsa-version>0.3.0</eddsa-version>
         <egit-github-core-version>2.1.5</egit-github-core-version>
         <ehcache3-version>3.11.1</ehcache3-version>
+        <!-- github-api (kohsuke) for camel-github2 -->
+        <github-api-version>1.330</github-api-version>
         <elasticsearch-java-client-version>9.3.0</elasticsearch-java-client-version>
         <elasticsearch-java-client-sniffer-version>9.2.4</elasticsearch-java-client-sniffer-version>
         <elytron-web>4.1.2.Final</elytron-web>
@@ -1454,6 +1456,11 @@
                 <artifactId>camel-github</artifactId>
                 <version>${project.version}</version>
             </dependency>
+            <dependency>
+                <groupId>org.apache.camel</groupId>
+                <artifactId>camel-github2</artifactId>
+                <version>${project.version}</version>
+            </dependency>
             <dependency>
                 <groupId>org.apache.camel</groupId>
                 <artifactId>camel-google-bigquery</artifactId>