Skip to content

Commit

Permalink
Document the sha1 parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkEWaite committed Aug 3, 2024
1 parent f00d7c3 commit a5e5fcd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/jenkins/plugins/git/GitSampleRepoRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,11 @@ public String notifyCommit(JenkinsRule r, @CheckForNull String notifyCommitToken
* If the caller wants to pass no access token, the
* notifyCommitToken needs to be null
*
* If the caller wants to pass no SHA-1, the sha1 parameter needs to be null.
*
* @param r JenkinsRule to receive the commit notification
* @param notifyCommitToken token used for notifyCommit authentication
* @param sha1 SHA-1 hash to included in notifyCommit
**/
public String notifyCommit(JenkinsRule r, @CheckForNull String notifyCommitToken, @CheckForNull String sha1) throws Exception {
boolean expectError = notifyCommitToken == null || notifyCommitToken.contains(INVALID_NOTIFY_COMMIT_TOKEN);
Expand Down

0 comments on commit a5e5fcd

Please sign in to comment.