Package org.eclipse.egit.github.core.service

Examples of org.eclipse.egit.github.core.service.UserService


    Commit commit = new Commit();
    commit.setMessage(message);
    commit.setTree(tree);

        try {
            UserService userService = new UserService(service.getClient());
            User user = userService.getUser();

            CommitUser author = new CommitUser();
            author.setName(user.getName());
            author.setEmail(user.getEmail());
            author.setDate(new GregorianCalendar().getTime());
View Full Code Here


    }

    public static User getGitUserByLogin(String login) {
        User user = null;
        try {
            user = new UserService(AuthServices.getGitHubClient()).getUser(login);
        } catch (Exception ex) {
            ex.printStackTrace();
            System.out.println("Erro ao consultar usuário \"" + login + "\": " + ex.toString());
        }
        return user;
View Full Code Here

TOP

Related Classes of org.eclipse.egit.github.core.service.UserService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.