davsclaus commented on code in PR #31144:
URL: https://github.com/apache/camel/pull/31144#discussion_r4745758250


##########
components/camel-github2/src/main/java/org/apache/camel/component/github2/GitHub2Constants.java:
##########
@@ -22,31 +22,49 @@ public interface GitHub2Constants {
 
     String GITHUB_CLIENT = "github2Client";
 
-    @Metadata(description = "The pull request", javaType = 
"org.kohsuke.github.GHPullRequest or Integer")
+    @Metadata(description = "The number of the pull request. Set by the 
pullRequest and pullRequestComment consumers,"
+                            + " and required by the pullRequestComment, 
closePullRequest and pullRequestFiles producers.",
+              javaType = "org.kohsuke.github.GHPullRequest or Integer")
     String GITHUB_PULLREQUEST = "CamelGitHubPullRequest";
-    @Metadata(label = "producer", description = "The id of the comment to 
reply to", javaType = "Long")
+    @Metadata(label = "producer",
+              description = "The id of a comment to reply to. Not used: the 
pullRequestComment producer always adds a"
+                            + " new comment to the conversation of the pull 
request.",
+              javaType = "Long")
     String GITHUB_INRESPONSETO = "CamelGitHubInResponseTo";
-    @Metadata(description = "The sha of the head of the pull request", 
javaType = "String")
+    @Metadata(description = "The SHA of the head commit of the pull request. 
Set by the pullRequest consumer, and required"
+                            + " by the pullRequestState producer, which 
creates the commit status on this commit.",
+              javaType = "String")
     String GITHUB_PULLREQUEST_HEAD_COMMIT_SHA = 
"CamelGitHubPullRequestHeadCommitSha";
-    @Metadata(label = "producer", description = "The title of the issue", 
javaType = "String")
+    @Metadata(label = "producer", description = "The title of the issue that 
the createIssue producer creates (required).",
+              javaType = "String")
     String GITHUB_ISSUE_TITLE = "CamelGitHubIssueTitle";
 
-    @Metadata(label = "consumer", description = "The commit author", javaType 
= "String")
+    @Metadata(label = "consumer",
+              description = "The name in the GitHub profile of the author of 
the commit, or the author name that git"
+                            + " recorded when the user cannot be looked up. 
Not set when the author has no GitHub account.",
+              javaType = "String")
     String GITHUB_COMMIT_AUTHOR = "CamelGitHubCommitAuthor";
-    @Metadata(label = "consumer", description = "The committer name", javaType 
= "String")
+    @Metadata(label = "consumer",
+              description = "The name in the GitHub profile of the committer 
of the commit, or the committer name that"
+                            + " git recorded when the user cannot be looked 
up. Not set when the committer has no GitHub"
+                            + " account.",
+              javaType = "String")
     String GITHUB_COMMIT_COMMITTER = "CamelGitHubCommitCommitter";
-    @Metadata(description = "The commit sha. The getCommitFile producer reads 
the file at this commit (a commit id of"
-                            + " 40 hexadecimal characters).",
+    @Metadata(description = "The SHA of the commit. Set by the commit 
consumer, and required by the getCommitFile producer,"
+                            + " which reads the file at this commit: a full 
SHA of 40 hexadecimal characters, not a branch"
+                            + " or tag name.",
               javaType = "String")
     String GITHUB_COMMIT_SHA = "CamelGitHubCommitSha";
     @Metadata(label = "producer",
               description = "The path of the file in the repository for the 
getCommitFile producer. If not set, the body"
                             + " is the path.",
               javaType = "String")
     String GITHUB_FILE_PATH = "CamelGitHubFilePath";
-    @Metadata(label = "consumer", description = "The commit URL", javaType = 
"String")
+    @Metadata(label = "consumer", description = "The URL of the web page of 
the commit on GitHub.", javaType = "String")
     String GITHUB_COMMIT_URL = "CamelGitHubCommitUrl";
-    @Metadata(label = "consumer", description = "The event payload",
+    @Metadata(label = "consumer",
+              description = "The org.kohsuke.github.GHEventInfo of the event, 
with its actor, repository and creation"
+                            + " time; getPayload(Class) gives the payload of 
the event.",
               javaType = "org.kohsuke.github.GHEventPayload")

Review Comment:
   Agreed, the declared type is wrong. This PR changes description text only 
(the rules of tasks/component-descriptions.md: no types, labels or defaults), 
so I added it to 
[CAMEL-27854](https://issues.apache.org/jira/browse/CAMEL-27854), the github2 
bug ticket of this batch, to fix with the other github2 issues.
   
   _Claude Code on behalf of davsclaus_



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to