-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add promise-based methods for GitHub client service #618
Conversation
Please, add javadocs for all added methods in GitHubClientService interface |
+1 to add javadocs |
void createPullRequest(@NotNull String user, @NotNull String repository, @NotNull GitHubPullRequestCreationInput input, | ||
void createPullRequest(@NotNull String user, | ||
@NotNull String repository, | ||
@NotNull GitHubPullRequestCreationInput input, | ||
@NotNull AsyncRequestCallback<GitHubPullRequest> callback); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this method changed directly instead of deprecation old method and new method addition just like for other methods you did?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we just fixed the formatting, and do the same things as with other methods (writing new one)
ok @vparfonov ? |
@@ -111,10 +135,21 @@ void commentIssue(@NotNull String user, @NotNull String repository, @NotNull Str | |||
* the repository name. | |||
* @param callback | |||
* callback called when operation is done. | |||
* @deprecated use {@link #getPullRequests(String, String)} | |||
*/ | |||
void getPullRequests(@NotNull String owner, @NotNull String repository, @NotNull AsyncRequestCallback<GitHubPullRequestList> callback); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add @Deprecated
annotation.
FIY, provide a little description in future PR's to describe what exactly PR propose to improve or fix. |
ok |
8dea9be
to
dfd56e4
Compare
ok |
Add promise-based methods for GitHub client service
Related to issue redhat-developer/rh-che#615 Signed-off-by: David Festal <dfestal@redhat.com>
_1 Upvote_