Skip to content

Commit 06d3562

Browse files
authored
feat: support squash commit workflow by linting PR (#6)
Support the squash-merge workflow by linting the commit that would be automatically created by the "Squash and merge" button. Extends the existing functionality where we lint the commits in the pull request: if this fails, we attempt to lint the pull request as if it were a squash merge commit, and if that succeeds then pass the commitlint step.
1 parent 30f06e1 commit 06d3562

File tree

5 files changed

+270
-83
lines changed

5 files changed

+270
-83
lines changed

package-lock.json

Lines changed: 48 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
"homepage": "https://github.com/mixmaxhq/commitlint-jenkins#readme",
3030
"dependencies": {
3131
"@commitlint/cli": "^8.2.0",
32+
"@octokit/rest": "^16.34.1",
3233
"execa": "^3.2.0",
34+
"hosted-git-info": "^3.0.2",
35+
"lodash": "^4.17.15",
3336
"yargs": "^14.2.0"
3437
},
3538
"devDependencies": {
@@ -40,7 +43,7 @@
4043
"eslint": "^6.6.0",
4144
"eslint-config-mixmax": "^3.4.0",
4245
"prettier": "^1.18.2",
43-
"semantic-release": "^15.13.28"
46+
"semantic-release": "^15.13.30"
4447
},
4548
"release": {
4649
"extends": [

0 commit comments

Comments
 (0)