Skip to content
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

Merged
merged 1 commit into from
Mar 3, 2016

Conversation

mkuznyetsov
Copy link
Contributor

@mkuznyetsov mkuznyetsov commented Mar 2, 2016

_1 Upvote_

@azatsarynnyy
Copy link
Member

Please, add javadocs for all added methods in GitHubClientService interface

@garagatyi
Copy link

+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);

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?

Copy link
Contributor

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)

@skabashnyuk
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add @Deprecated annotation.

@vzhukovs
Copy link
Contributor

vzhukovs commented Mar 3, 2016

FIY, provide a little description in future PR's to describe what exactly PR propose to improve or fix.

@vzhukovs
Copy link
Contributor

vzhukovs commented Mar 3, 2016

ok

@vparfonov
Copy link
Contributor

ok

mkuznyetsov pushed a commit that referenced this pull request Mar 3, 2016
Add promise-based methods for GitHub client service
@mkuznyetsov mkuznyetsov merged commit 528ac30 into master Mar 3, 2016
@mkuznyetsov mkuznyetsov deleted the github-refactor branch March 4, 2016 08:40
Katka92 pushed a commit to Katka92/che that referenced this pull request Jun 27, 2018
Related to issue redhat-developer/rh-che#615

Signed-off-by: David Festal <dfestal@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants