Skip to content

Commit 933a365

Browse files
author
Eli Skeggs
committed
feat: initial revision
The initial revision of commitlint-jenkins.
1 parent 1b062c7 commit 933a365

11 files changed

+8472
-1
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/node_modules

.eslintrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": ["mixmax/node", "mixmax/prettier"],
3+
"rules": {
4+
"no-console": "off"
5+
}
6+
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules
2+
.DS_Store

.prettierrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"@mixmaxhq/prettier-config"

Jenkinsfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This name is defined in the Jenkins management console, and pulled from a github repository under
2+
// our mixmaxhq organization by the same name. Specify a specific tag/revision by appending it along
3+
// with an '@' symbol to the string literal.
4+
@Library('scm-service-library') _
5+
6+
npmModulePipeline {
7+
nodeVersion = '10.16.0'
8+
npmVersion = '6.4.1'
9+
}

LICENSE

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
MIT License
2+
3+
Copyright (c) 2019 Mixmax, Inc
4+
5+
Copyright (c) 2016 - 2019 Mario Nebl where applicable
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# commitlint-jenkins
22

3-
A wrapper for commitlint that determines the appropriate commit range in a Jenkins build.
3+
A wrapper for commitlint that determines the appropriate commit range in a Jenkins build. Adapted
4+
from `@commitlint/travis-cli`.
5+
6+
Only supports `git` projects, assumes a single repository (i.e. does not explicitly support cross-
7+
repo pull requests), and doesn't support renaming the remote to something other than `origin`. We
8+
welcome [pull requests](https://github.com/mixmaxhq/commitlint-jenkins/pulls)!

commitlint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] };

0 commit comments

Comments
 (0)