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 272b87f

Browse filesBrowse files
add ability to attach a signature when creating a commit
1 parent f1ca0b5 commit 272b87f
Copy full SHA for 272b87f

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+13
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHCommitBuilder.java
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,19 @@ public GHCommitBuilder author(String name, String email, Date date) {
8989
return this;
9090
}
9191

92+
/**
93+
* Configures the PGP signature of this commit.
94+
*
95+
* @param signature
96+
* the signature calculated from the commit
97+
*
98+
* @return the gh commit builder
99+
*/
100+
public GHCommitBuilder withSignature(String signature) {
101+
req.with("signature", signature);
102+
return this;
103+
}
104+
92105
/**
93106
* Configures the committer of this commit.
94107
*

0 commit comments

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