org.jenkinsci.plugins.ghprb.jobdsl
Class GhprbPullRequestMergeContext

java.lang.Object
  extended by org.jenkinsci.plugins.ghprb.jobdsl.GhprbPullRequestMergeContext
All Implemented Interfaces:
javaposse.jobdsl.dsl.Context

public class GhprbPullRequestMergeContext
extends Object
implements javaposse.jobdsl.dsl.Context


Constructor Summary
GhprbPullRequestMergeContext()
           
 
Method Summary
 void deleteOnMerge()
          Deletes the branch after a successful merge.
 void deleteOnMerge(boolean deleteOnMerge)
          Deletes the branch after a successful merge.
 void disallowOwnCode()
          Disallows a user to merge their own code.
 void disallowOwnCode(boolean disallowOwnCode)
          Disallows a user to merge their own code.
 void failOnNonMerge()
          Fails the build if the pull request can't be merged.
 void failOnNonMerge(boolean failOnNonMerge)
          Fails the build if the pull request can't be merged.
 void mergeComment(String mergeComment)
          Sets a comment that should show up when the merge command is sent to GitHub.
 void onlyAdminsMerge()
          Allows only admin users to trigger a pull request merge.
 void onlyAdminsMerge(boolean onlyAdminsMerge)
          Allows only admin users to trigger a pull request merge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GhprbPullRequestMergeContext

public GhprbPullRequestMergeContext()
Method Detail

mergeComment

public void mergeComment(String mergeComment)
Sets a comment that should show up when the merge command is sent to GitHub.


onlyAdminsMerge

public void onlyAdminsMerge(boolean onlyAdminsMerge)
Allows only admin users to trigger a pull request merge. Defaults to false.


onlyAdminsMerge

public void onlyAdminsMerge()
Allows only admin users to trigger a pull request merge. Defaults to false.


disallowOwnCode

public void disallowOwnCode(boolean disallowOwnCode)
Disallows a user to merge their own code. Defaults to false.


disallowOwnCode

public void disallowOwnCode()
Disallows a user to merge their own code. Defaults to false.


failOnNonMerge

public void failOnNonMerge(boolean failOnNonMerge)
Fails the build if the pull request can't be merged. Defaults to false.


failOnNonMerge

public void failOnNonMerge()
Fails the build if the pull request can't be merged. Defaults to false.


deleteOnMerge

public void deleteOnMerge(boolean deleteOnMerge)
Deletes the branch after a successful merge. Defaults to false.


deleteOnMerge

public void deleteOnMerge()
Deletes the branch after a successful merge. Defaults to false.



Copyright © 2004-2016. All Rights Reserved.