You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Commit "+commitInfo.sha.substr(0,7)+" is for "+commitIssueKey+", but the PR is for "+issueKey,
118
-
extendedDescription: "Please fix your commit message to have the same ticket number as the pull request. If the inconsistency is intentional, you can disable this warning with DISABLE_JIRA_ISSUE_MATCH=true in the PR description.",
description: "Commit "+commitInfo.sha.substr(0,7)+" is for "+commitIssueKey+", but the PR is for "+issueKey,
119
+
extendedDescription: "Please fix your commit message to have the same ticket number as the pull request. If the inconsistency is intentional, you can disable this warning with DISABLE_JIRA_ISSUE_MATCH=true in the PR description.",
120
+
badCommit: commitInfo
121
+
};
122
+
}
121
123
}
122
124
}
123
125
126
+
124
127
// Since we can't easily check more than 100 commits, reject PRs with more than 100 commits
125
128
if(commits.length===100){
126
129
return{
@@ -222,8 +225,12 @@ async function touch(pullRequest, jiraInfo) {
222
225
constmultiCommitMessage=(jiraInfo.numCommits===0) ? "No commits found on PR" : (jiraInfo.numCommits===1) ? "This PR includes exactly 1 commit!" : "This PR has "+jiraInfo.numCommits+" commits"+(multiCommitPass ? "" : "; consider squashing.");
0 commit comments