mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 15:49:57 +00:00
113 lines
4.2 KiB
HTML
113 lines
4.2 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>GHDeploymentStatus.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">GitHub API for Java</a> > <a href="index.source.html" class="el_package">org.kohsuke.github</a> > <span class="el_source">GHDeploymentStatus.java</span></div><h1>GHDeploymentStatus.java</h1><pre class="source lang-java linenums">package org.kohsuke.github;
|
|
|
|
import org.kohsuke.github.internal.Previews;
|
|
|
|
import java.net.URL;
|
|
import java.util.Locale;
|
|
|
|
/**
|
|
* The type GHDeploymentStatus.
|
|
*/
|
|
<span class="fc" id="L11">public class GHDeploymentStatus extends GHObject {</span>
|
|
private GHRepository owner;
|
|
protected GHUser creator;
|
|
protected String state;
|
|
protected String description;
|
|
protected String target_url;
|
|
protected String log_url;
|
|
protected String deployment_url;
|
|
protected String repository_url;
|
|
protected String environment_url;
|
|
|
|
/**
|
|
* Wrap gh deployment status.
|
|
*
|
|
* @param owner
|
|
* the owner
|
|
*
|
|
* @return the gh deployment status
|
|
*/
|
|
public GHDeploymentStatus wrap(GHRepository owner) {
|
|
<span class="fc" id="L31"> this.owner = owner;</span>
|
|
<span class="fc" id="L32"> this.root = owner.root;</span>
|
|
<span class="pc bpc" id="L33" title="1 of 2 branches missed."> if (creator != null)</span>
|
|
<span class="fc" id="L34"> creator.wrapUp(root);</span>
|
|
<span class="fc" id="L35"> return this;</span>
|
|
}
|
|
|
|
/**
|
|
* Gets target url.
|
|
*
|
|
* @deprecated Target url is deprecated in favor of {@link #getLogUrl() getLogUrl}
|
|
*
|
|
* @return the target url
|
|
*/
|
|
@Deprecated
|
|
public URL getTargetUrl() {
|
|
<span class="fc" id="L47"> return GitHubClient.parseURL(target_url);</span>
|
|
}
|
|
|
|
/**
|
|
* Gets target url.
|
|
* <p>
|
|
* This method replaces {@link #getTargetUrl() getTargetUrl}}.
|
|
*
|
|
* @deprecated until preview feature has graduated to stable
|
|
*
|
|
* @return the target url
|
|
*/
|
|
@Deprecated
|
|
@Preview(Previews.ANT_MAN)
|
|
public URL getLogUrl() {
|
|
<span class="fc" id="L62"> return GitHubClient.parseURL(log_url);</span>
|
|
}
|
|
|
|
/**
|
|
* Gets deployment url.
|
|
*
|
|
* @return the deployment url
|
|
*/
|
|
public URL getDeploymentUrl() {
|
|
<span class="fc" id="L71"> return GitHubClient.parseURL(deployment_url);</span>
|
|
}
|
|
|
|
/**
|
|
* Gets deployment environment url.
|
|
*
|
|
* @deprecated until preview feature has graduated to stable
|
|
*
|
|
* @return the deployment environment url
|
|
*/
|
|
@Deprecated
|
|
@Preview(Previews.ANT_MAN)
|
|
public URL getEnvironmentUrl() {
|
|
<span class="nc" id="L84"> return GitHubClient.parseURL(environment_url);</span>
|
|
}
|
|
|
|
/**
|
|
* Gets repository url.
|
|
*
|
|
* @return the repository url
|
|
*/
|
|
public URL getRepositoryUrl() {
|
|
<span class="fc" id="L93"> return GitHubClient.parseURL(repository_url);</span>
|
|
}
|
|
|
|
/**
|
|
* Gets state.
|
|
*
|
|
* @return the state
|
|
*/
|
|
public GHDeploymentState getState() {
|
|
<span class="fc" id="L102"> return GHDeploymentState.valueOf(state.toUpperCase(Locale.ENGLISH));</span>
|
|
}
|
|
|
|
/**
|
|
* @deprecated This object has no HTML URL.
|
|
*/
|
|
@Override
|
|
public URL getHtmlUrl() {
|
|
<span class="nc" id="L110"> return null;</span>
|
|
}
|
|
}
|
|
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html> |