Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d5f5fa0

Browse filesBrowse files
committed
doc improvement
1 parent c284f90 commit d5f5fa0
Copy full SHA for d5f5fa0

File tree

Expand file treeCollapse file tree

1 file changed

+18
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+18
-0
lines changed

‎src/main/java/org/kohsuke/github/GHRef.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRef.java
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,23 @@ public class GHRef {
1212
private String ref, url;
1313
private GHObject object;
1414

15+
/**
16+
* Name of the ref, such as "refs/tags/abc"
17+
*/
1518
public String getRef() {
1619
return ref;
1720
}
1821

22+
/**
23+
* The API URL of this tag, such as https://api.github.com/repos/jenkinsci/jenkins/git/refs/tags/1.312
24+
*/
1925
public URL getUrl() {
2026
return GitHub.parseURL(url);
2127
}
2228

29+
/**
30+
* The object that this ref points to.
31+
*/
2332
public GHObject getObject() {
2433
return object;
2534
}
@@ -28,14 +37,23 @@ public GHObject getObject() {
2837
public static class GHObject {
2938
private String type, sha, url;
3039

40+
/**
41+
* Type of the object, such as "commit"
42+
*/
3143
public String getType() {
3244
return type;
3345
}
3446

47+
/**
48+
* SHA1 of this object.
49+
*/
3550
public String getSha() {
3651
return sha;
3752
}
3853

54+
/**
55+
* API URL to this Git data, such as https://api.github.com/repos/jenkinsci/jenkins/git/commits/b72322675eb0114363a9a86e9ad5a170d1d07ac0
56+
*/
3957
public URL getUrl() {
4058
return GitHub.parseURL(url);
4159
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.