public class CommitPullMatcher extends Object
| Constructor and Description |
|---|
CommitPullMatcher() |
| Modifier and Type | Method and Description |
|---|---|
static List<Commit> |
matchCommitToPulls(List<Commit> commits,
List<GitRequest> pullRequests)
Normal merge: Match PR's commit sha's with commit list
Squash merge: Match PR's merge sha's with commit list
Rebase merge: Match PR's commit's "message"+"author name"+"date" with commit list
|
public static List<Commit> matchCommitToPulls(List<Commit> commits, List<GitRequest> pullRequests)
If match found, set the commit's PR number and possibly set the PR merge type
For setting type: If PR commit's SHAs are all found in commit stream, then the commit for the merge sha is a merge commit. In all other cases it is a new commit
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.