Skip to content

Commit

Permalink
Change default PR build strategy from merge to head (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick authored Jan 20, 2023
1 parent addca9c commit 00cc818
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2522,9 +2522,9 @@ public List<NamedArrayList<? extends SCMTraitDescriptor<?>>> getTraitsDescriptor
public List<SCMSourceTrait> getTraitsDefaults() {
return Arrays.asList( // TODO finalize
new BranchDiscoveryTrait(true, false),
new OriginPullRequestDiscoveryTrait(EnumSet.of(ChangeRequestCheckoutStrategy.MERGE)),
new OriginPullRequestDiscoveryTrait(EnumSet.of(ChangeRequestCheckoutStrategy.HEAD)),
new ForkPullRequestDiscoveryTrait(
EnumSet.of(ChangeRequestCheckoutStrategy.MERGE),
EnumSet.of(ChangeRequestCheckoutStrategy.HEAD),
new ForkPullRequestDiscoveryTrait.TrustPermission()));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<dt>Merging the pull request with the current target branch revision</dt>
<dd>Discover each pull request once with the discovered revision corresponding to the result of merging with the
current revision of the target branch.
Note that pushes to the target branch will result in new pull request builds.
</dd>
<dt>The current pull request revision</dt>
<dd>Discover each pull request once with the discovered revision corresponding to the pull request head revision
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<dt>Merging the pull request with the current target branch revision</dt>
<dd>Discover each pull request once with the discovered revision corresponding to the result of merging with the
current revision of the target branch.
Note that pushes to the target branch will result in new pull request builds.
</dd>
<dt>The current pull request revision</dt>
<dd>Discover each pull request once with the discovered revision corresponding to the pull request head revision
Expand Down

0 comments on commit 00cc818

Please sign in to comment.