Tabnine Logo
GHMyself.getEmail
Code IndexAdd Tabnine to your IDE (free)

How to use
getEmail
method
in
org.kohsuke.github.GHMyself

Best Java code snippets using org.kohsuke.github.GHMyself.getEmail (Showing top 3 results out of 315)

origin: jenkinsci/ghprb-plugin

@POST
public FormValidation doTestGithubAccess(
    @QueryParameter("serverAPIUrl") final String serverAPIUrl,
    @QueryParameter("credentialsId") final String credentialsId) {
  Jenkins.getInstance().checkPermission(Jenkins.ADMINISTER);
  try {
    GitHubBuilder builder = getBuilder(null, serverAPIUrl, credentialsId);
    if (builder == null) {
      return FormValidation.error("Unable to look up GitHub credentials using ID: " + credentialsId + "!!");
    }
    GitHub gh = builder.build();
    GHMyself me = gh.getMyself();
    String name = me.getName();
    String email = me.getEmail();
    String login = me.getLogin();
    String comment = String.format("Connected to %s as %s (%s) login: %s", serverAPIUrl, name, email, login);
    return FormValidation.ok(comment);
  } catch (Exception ex) {
    return FormValidation.error("Unable to connect to GitHub API: " + ex);
  }
}
origin: io.fabric8.updatebot/updatebot-core

GHMyself myself = github.getMyself();
if (myself != null) {
  email = myself.getEmail();
  personName = myself.getName();
  if (Strings.empty(personName)) {
origin: io.jenkins.updatebot/updatebot-core

GHMyself myself = github.getMyself();
if (myself != null) {
  email = myself.getEmail();
  personName = myself.getName();
  if (Strings.empty(personName)) {
org.kohsuke.githubGHMyselfgetEmail

Popular methods of GHMyself

  • getLogin
  • listRepositories
    List repositories of a certain type that are accessible by current authenticated user using the spec
  • getName
  • getEmails2
    Returns the read-only list of e-mail addresses configured for you. This corresponds to the stuff you
  • getRepository
  • listAllRepositories
  • getAllOrganizations
    Gets the organization that this user belongs to.
  • getAllRepositories
    Gets the all repositories this user owns (public and private).
  • getAvatarUrl
  • listOrgMemberships
    List your organization memberships

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now