Skip to content

Commit 7decc80

Browse files
Merge pull request #19 from conventional-changelog/master
[pull] master from conventional-changelog:master
2 parents bd9c1ff + 16f65a0 commit 7decc80

23 files changed

+190
-17
lines changed

.github/workflows/container-build.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: container build
2+
on:
3+
push:
4+
tags:
5+
- '**'
6+
branches:
7+
- '**'
8+
- '!master'
9+
schedule:
10+
- cron: '0 0 * * *'
11+
jobs:
12+
container-build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: checkout
16+
uses: actions/checkout@v3
17+
- name: Set up QEMU
18+
uses: docker/setup-qemu-action@v3
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v2
21+
- name: Log into registry
22+
uses: docker/login-action@v3
23+
with:
24+
username: ${{ secrets.DOCKERHUB_USERNAME }}
25+
password: ${{ secrets.DOCKERHUB_TOKEN }}
26+
- name: Docker meta
27+
id: meta
28+
uses: docker/metadata-action@v5
29+
with:
30+
images: commitlint/commitlint
31+
tags: |
32+
type=semver,pattern={{version}}
33+
type=edge,branch=master
34+
type=ref,event=branch
35+
type=sha,prefix=,format=short
36+
- name: Build and push container image
37+
uses: docker/build-push-action@v5
38+
with:
39+
context: .
40+
file: Dockerfile.ci
41+
push: true
42+
tags: ${{ steps.meta.outputs.tags }}
43+
labels: ${{ steps.meta.outputs.labels }}
44+
# disable arm build for now, because of https://github.com/nodejs/docker-node/issues/1335
45+
platforms: linux/amd64 #,linux/arm64

@alias/commitlint/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [17.7.2](https://github.com/conventional-changelog/commitlint/compare/v17.7.1...v17.7.2) (2023-09-28)
7+
8+
**Note:** Version bump only for package commitlint
9+
10+
11+
12+
13+
614
## [17.7.1](https://github.com/conventional-changelog/commitlint/compare/v17.7.0...v17.7.1) (2023-08-10)
715

816
**Note:** Version bump only for package commitlint

@alias/commitlint/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commitlint",
3-
"version": "17.7.1",
3+
"version": "17.7.2",
44
"description": "Lint your commit messages",
55
"files": [
66
"cli.js"
@@ -35,7 +35,7 @@
3535
},
3636
"license": "MIT",
3737
"dependencies": {
38-
"@commitlint/cli": "^17.7.1",
38+
"@commitlint/cli": "^17.7.2",
3939
"@commitlint/types": "^17.4.4"
4040
},
4141
"devDependencies": {

@commitlint/cli/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [17.7.2](https://github.com/conventional-changelog/commitlint/compare/v17.7.1...v17.7.2) (2023-09-28)
7+
8+
**Note:** Version bump only for package @commitlint/cli
9+
10+
11+
12+
13+
614
## [17.7.1](https://github.com/conventional-changelog/commitlint/compare/v17.7.0...v17.7.1) (2023-08-10)
715

816
**Note:** Version bump only for package @commitlint/cli

@commitlint/cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@commitlint/cli",
3-
"version": "17.7.1",
3+
"version": "17.7.2",
44
"description": "Lint your commit messages",
55
"files": [
66
"index.js",
@@ -49,7 +49,7 @@
4949
"dependencies": {
5050
"@commitlint/format": "^17.4.4",
5151
"@commitlint/lint": "^17.7.0",
52-
"@commitlint/load": "^17.7.1",
52+
"@commitlint/load": "^17.7.2",
5353
"@commitlint/read": "^17.5.1",
5454
"@commitlint/types": "^17.4.4",
5555
"execa": "^5.0.0",

@commitlint/core/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [17.7.2](https://github.com/conventional-changelog/commitlint/compare/v17.7.1...v17.7.2) (2023-09-28)
7+
8+
**Note:** Version bump only for package @commitlint/core
9+
10+
11+
12+
13+
614
## [17.7.1](https://github.com/conventional-changelog/commitlint/compare/v17.7.0...v17.7.1) (2023-08-10)
715

816
**Note:** Version bump only for package @commitlint/core

@commitlint/core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@commitlint/core",
3-
"version": "17.7.1",
3+
"version": "17.7.2",
44
"description": "Lint your commit messages",
55
"main": "lib/core.js",
66
"types": "lib/core.d.ts",
@@ -37,7 +37,7 @@
3737
"dependencies": {
3838
"@commitlint/format": "^17.4.4",
3939
"@commitlint/lint": "^17.7.0",
40-
"@commitlint/load": "^17.7.1",
40+
"@commitlint/load": "^17.7.2",
4141
"@commitlint/read": "^17.5.1"
4242
},
4343
"devDependencies": {

@commitlint/cz-commitlint/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [17.7.2](https://github.com/conventional-changelog/commitlint/compare/v17.7.1...v17.7.2) (2023-09-28)
7+
8+
**Note:** Version bump only for package @commitlint/cz-commitlint
9+
10+
11+
12+
13+
614
## [17.7.1](https://github.com/conventional-changelog/commitlint/compare/v17.7.0...v17.7.1) (2023-08-10)
715

816
**Note:** Version bump only for package @commitlint/cz-commitlint

@commitlint/cz-commitlint/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@commitlint/cz-commitlint",
3-
"version": "17.7.1",
3+
"version": "17.7.2",
44
"description": "Commitizen adapter using the commitlint.config.js",
55
"main": "./lib/index.js",
66
"files": [
@@ -38,7 +38,7 @@
3838
},
3939
"dependencies": {
4040
"@commitlint/ensure": "^17.6.7",
41-
"@commitlint/load": "^17.7.1",
41+
"@commitlint/load": "^17.7.2",
4242
"@commitlint/types": "^17.4.4",
4343
"chalk": "^4.1.0",
4444
"lodash.isplainobject": "^4.0.6",

@commitlint/load/CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [17.7.2](https://github.com/conventional-changelog/commitlint/compare/v17.7.1...v17.7.2) (2023-09-28)
7+
8+
9+
### Bug Fixes
10+
11+
* update dependency @types/node to v20.5.1 ([#3653](https://github.com/conventional-changelog/commitlint/issues/3653)) ([cd8b775](https://github.com/conventional-changelog/commitlint/commit/cd8b7750d3a15fbfd96e20196d53df064df6e138))
12+
13+
14+
15+
16+
617
## [17.7.1](https://github.com/conventional-changelog/commitlint/compare/v17.7.0...v17.7.1) (2023-08-10)
718

819

@commitlint/load/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@commitlint/load",
3-
"version": "17.7.1",
3+
"version": "17.7.2",
44
"description": "Load shared commitlint configuration",
55
"main": "lib/load.js",
66
"types": "lib/load.d.ts",

@commitlint/prompt-cli/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [17.7.2](https://github.com/conventional-changelog/commitlint/compare/v17.7.1...v17.7.2) (2023-09-28)
7+
8+
**Note:** Version bump only for package @commitlint/prompt-cli
9+
10+
11+
12+
13+
614
## [17.7.1](https://github.com/conventional-changelog/commitlint/compare/v17.7.0...v17.7.1) (2023-08-10)
715

816
**Note:** Version bump only for package @commitlint/prompt-cli

@commitlint/prompt-cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@commitlint/prompt-cli",
3-
"version": "17.7.1",
3+
"version": "17.7.2",
44
"description": "commit prompt using commitlint.config.js",
55
"files": [
66
"cli.js"
@@ -36,7 +36,7 @@
3636
"@commitlint/utils": "^17.4.0"
3737
},
3838
"dependencies": {
39-
"@commitlint/prompt": "^17.7.1",
39+
"@commitlint/prompt": "^17.7.2",
4040
"execa": "^5.0.0",
4141
"inquirer": "^6.5.2"
4242
},

@commitlint/prompt/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [17.7.2](https://github.com/conventional-changelog/commitlint/compare/v17.7.1...v17.7.2) (2023-09-28)
7+
8+
**Note:** Version bump only for package @commitlint/prompt
9+
10+
11+
12+
13+
614
## [17.7.1](https://github.com/conventional-changelog/commitlint/compare/v17.7.0...v17.7.1) (2023-08-10)
715

816
**Note:** Version bump only for package @commitlint/prompt

@commitlint/prompt/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@commitlint/prompt",
3-
"version": "17.7.1",
3+
"version": "17.7.2",
44
"description": "commitizen prompt using commitlint.config.js",
55
"main": "./lib/index.js",
66
"files": [
@@ -46,7 +46,7 @@
4646
},
4747
"dependencies": {
4848
"@commitlint/ensure": "^17.6.7",
49-
"@commitlint/load": "^17.7.1",
49+
"@commitlint/load": "^17.7.2",
5050
"@commitlint/types": "^17.4.4",
5151
"chalk": "^4.1.0",
5252
"inquirer": "^6.5.2"

@commitlint/travis-cli/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [17.7.2](https://github.com/conventional-changelog/commitlint/compare/v17.7.1...v17.7.2) (2023-09-28)
7+
8+
**Note:** Version bump only for package @commitlint/travis-cli
9+
10+
11+
12+
13+
614
## [17.7.1](https://github.com/conventional-changelog/commitlint/compare/v17.7.0...v17.7.1) (2023-08-10)
715

816
**Note:** Version bump only for package @commitlint/travis-cli

@commitlint/travis-cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@commitlint/travis-cli",
3-
"version": "17.7.1",
3+
"version": "17.7.2",
44
"description": "Lint all relevant commits for a change or PR on Travis CI",
55
"files": [
66
"lib/",
@@ -40,7 +40,7 @@
4040
"@commitlint/utils": "^17.4.0"
4141
},
4242
"dependencies": {
43-
"@commitlint/cli": "^17.7.1",
43+
"@commitlint/cli": "^17.7.2",
4444
"execa": "^5.0.0"
4545
},
4646
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [17.7.2](https://github.com/conventional-changelog/commitlint/compare/v17.7.1...v17.7.2) (2023-09-28)
7+
8+
9+
### Bug Fixes
10+
11+
* update dependency @types/node to v20.5.1 ([#3653](https://github.com/conventional-changelog/commitlint/issues/3653)) ([cd8b775](https://github.com/conventional-changelog/commitlint/commit/cd8b7750d3a15fbfd96e20196d53df064df6e138))
12+
13+
14+
15+
16+
617
## [17.7.1](https://github.com/conventional-changelog/commitlint/compare/v17.7.0...v17.7.1) (2023-08-10)
718

819

Dockerfile.ci

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM docker.io/library/node:18-buster AS builder
2+
WORKDIR /src
3+
COPY . ./
4+
RUN yarn install && \
5+
yarn run build && \
6+
# Commit lint CLI packages
7+
npm pack @commitlint/cli && \
8+
npm pack @commitlint/config-validator && \
9+
npm pack @commitlint/ensure && \
10+
npm pack @commitlint/execute-rule && \
11+
npm pack @commitlint/format && \
12+
npm pack @commitlint/is-ignored && \
13+
npm pack @commitlint/lint && \
14+
npm pack @commitlint/load && \
15+
npm pack @commitlint/message && \
16+
npm pack @commitlint/parse && \
17+
npm pack @commitlint/read && \
18+
npm pack @commitlint/resolve-extends && \
19+
npm pack @commitlint/rules && \
20+
npm pack @commitlint/to-lines && \
21+
npm pack @commitlint/top-level && \
22+
npm pack @commitlint/types && \
23+
# Default commitlint config
24+
npm pack @commitlint/config-conventional
25+
26+
FROM docker.io/library/node:18-buster
27+
COPY --from=builder /src/*.tgz ./
28+
RUN npm install -g *.tgz && \
29+
rm -rf *.tgz
30+
ENTRYPOINT ["commitlint"]
File renamed without changes.

docker-compose.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
version: '3'
22
services:
33
commitlint:
4-
build: .
4+
build:
5+
context: .
6+
dockerfile: Dockerfile.dev
57
image: marionebl/commitlint-cubicle
68
ports:
79
- '8443:8443'

docs/guides-ci-setup.md

+18
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,30 @@ workflows:
121121
## GitLab CI
122122
123123
```yaml
124+
stages: ["lint","build","test"]
124125
lint:commit:
126+
image: registry.hub.docker.com/library/node:alpine
125127
stage: lint
128+
before_script:
129+
- apk add --no-cache git
130+
- npm install --save-dev @commitlint/config-conventional @commitlint/cli
126131
script:
127132
- echo "${CI_COMMIT_MESSAGE}" | npx commitlint
128133
```
129134
135+
## GitLab CI with pre-build container
136+
137+
```yaml
138+
stages: ["lint","build","test"]
139+
lint:commit:
140+
image:
141+
name: registry.hub.docker.com/commitlint/commitlint:latest
142+
entrypoint: [""]
143+
stage: lint
144+
script:
145+
- echo "${CI_COMMIT_MESSAGE}" | commitlint
146+
```
147+
130148
### 3rd party integrations
131149
132150
#### [Codemagic](https://codemagic.io/)

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"lerna": "4",
33
"npmClient": "yarn",
44
"useWorkspaces": true,
5-
"version": "17.7.1"
5+
"version": "17.7.2"
66
}

0 commit comments

Comments
 (0)