public class CommitPullMatcher extends Object
| Constructor and Description |
|---|
CommitPullMatcher() |
| Modifier and Type | Method and Description |
|---|---|
static List<com.capitalone.dashboard.model.Commit> |
matchCommitToPulls(List<com.capitalone.dashboard.model.Commit> commits,
List<com.capitalone.dashboard.model.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<com.capitalone.dashboard.model.Commit> matchCommitToPulls(List<com.capitalone.dashboard.model.Commit> commits, List<com.capitalone.dashboard.model.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 © 2019 Hygieia. All rights reserved.