add ability to attach a signature when creating a commit

This commit is contained in:
Tadas Giniotis
2020-09-30 23:21:05 +03:00
parent f1ca0b5417
commit 272b87f04d

View File

@@ -89,6 +89,19 @@ public class GHCommitBuilder {
return this;
}
/**
* Configures the PGP signature of this commit.
*
* @param signature
* the signature calculated from the commit
*
* @return the gh commit builder
*/
public GHCommitBuilder withSignature(String signature) {
req.with("signature", signature);
return this;
}
/**
* Configures the committer of this commit.
*