mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-22 00:11:26 +00:00
87 lines
3.3 KiB
HTML
87 lines
3.3 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>GHPullRequestChanges.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">GHPullRequestChanges.java</span></div><h1>GHPullRequestChanges.java</h1><pre class="source lang-java linenums">package org.kohsuke.github;
|
|
|
|
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
|
|
|
/**
|
|
* Wrapper to define changed fields on pull_request action="edited"
|
|
*
|
|
* @see GHEventPayload.PullRequest
|
|
*/
|
|
@SuppressFBWarnings("UWF_UNWRITTEN_FIELD")
|
|
<span class="fc" id="L11">public class GHPullRequestChanges {</span>
|
|
|
|
private GHCommitPointer base;
|
|
private GHFrom title;
|
|
private GHFrom body;
|
|
|
|
/**
|
|
* Old target branch for pull request.
|
|
*
|
|
* @return old target branch info (or null if not changed)
|
|
*/
|
|
public GHCommitPointer getBase() {
|
|
<span class="fc" id="L23"> return base;</span>
|
|
}
|
|
|
|
/**
|
|
* Old pull request title.
|
|
*
|
|
* @return old pull request title (or null if not changed)
|
|
*/
|
|
public GHFrom getTitle() {
|
|
<span class="fc" id="L32"> return title;</span>
|
|
}
|
|
|
|
/**
|
|
* Old pull request body.
|
|
*
|
|
* @return old pull request body (or null if not changed)
|
|
*/
|
|
public GHFrom getBody() {
|
|
<span class="fc" id="L41"> return body;</span>
|
|
}
|
|
|
|
/**
|
|
* @see org.kohsuke.github.GHCommitPointer
|
|
*/
|
|
<span class="fc" id="L47"> public static class GHCommitPointer {</span>
|
|
private GHFrom ref;
|
|
private GHFrom sha;
|
|
|
|
/**
|
|
* Named ref to the commit. This (from value) appears to be a "short ref" that doesn't include "refs/heads/"
|
|
* portion.
|
|
*
|
|
* @return the ref
|
|
*/
|
|
public GHFrom getRef() {
|
|
<span class="fc" id="L58"> return ref;</span>
|
|
}
|
|
|
|
/**
|
|
* SHA1 of the commit.
|
|
*
|
|
* @return sha
|
|
*/
|
|
public GHFrom getSha() {
|
|
<span class="fc" id="L67"> return sha;</span>
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Wrapper for changed values.
|
|
*/
|
|
<span class="fc" id="L74"> public static class GHFrom {</span>
|
|
private String from;
|
|
|
|
/**
|
|
* Previous value that was changed.
|
|
*
|
|
* @return previous value
|
|
*/
|
|
public String getFrom() {
|
|
<span class="fc" id="L83"> return from;</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> |