Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wagoid/commitlint-github-action
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3
Choose a base ref
...
head repository: wagoid/commitlint-github-action
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4
Choose a head ref

Commits on Jul 7, 2021

  1. feat: upgrade to node.js 16 to support ES modules by default

    This will help upgrading dependencies to new versions that are exported
    as ESM.
    
    BREAKING CHANGE: Node.js version used on the action updated from 12 to
    16
    wagoid committed Jul 7, 2021
    Copy the full SHA
    30d514f View commit details
  2. Copy the full SHA
    8ea3404 View commit details
  3. chore(deps): upgrade @commitlint dependencies

    Resolves #187
    wagoid committed Jul 7, 2021
    Copy the full SHA
    9e5880e View commit details
  4. feat: update dependencies that needed to switch to ESM syntax

    Some packages were updated to versions that now use ECMAScript modules,
    so this repo was updated to use ES modules using Node.js built-in support.
    
    Update was done using the great guide from @sindresorhus:
    https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
    wagoid committed Jul 7, 2021
    Copy the full SHA
    5463926 View commit details

Commits on Jul 15, 2021

  1. Merge pull request #189 from wagoid/chore/upgrade-deps

    chore: upgrade dependencies
    wagoid authored Jul 15, 2021
    Copy the full SHA
    711b4f4 View commit details
  2. chore(release): publish 4.0.0 [skip-ci]

    GitHub Action committed Jul 15, 2021
    Copy the full SHA
    c6ec005 View commit details
  3. Copy the full SHA
    6ee5392 View commit details
  4. chore(dx): add .nvmrc file

    wagoid committed Jul 15, 2021
    Copy the full SHA
    9ab6c49 View commit details
  5. Copy the full SHA
    e0fb983 View commit details
  6. Merge pull request #193 from wagoid/chore/upgrade-deps-and-readme

    chore: upgrade deps and readme
    wagoid authored Jul 15, 2021
    Copy the full SHA
    46370a5 View commit details
  7. chore(release): publish 4.0.1 [skip-ci]

    GitHub Action committed Jul 15, 2021
    Copy the full SHA
    0dd6697 View commit details
  8. Copy the full SHA
    5b6cd1b View commit details
  9. Merge pull request #195 from wagoid/fix/default-to-cjs-extension

    fix: default to .cjs extension in config files
    wagoid authored Jul 15, 2021
    Copy the full SHA
    41bc975 View commit details
  10. chore(release): publish 4.0.2 [skip-ci]

    GitHub Action committed Jul 15, 2021
    Copy the full SHA
    0cb522a View commit details

Commits on Jul 17, 2021

  1. fix: build the action with rollup

    On v4, we used the default nodejs resolution logic to allow ES modules in dependencies.
    This created a breaking change of forcing users of this action
    to use the .cjs extension instead of .js in config files.
    
    With this fix, we now bundle the action with rollup to allow ES modules
    in dependencies, while keeping the support for .js config files.
    
    With this change, the default config file was returned back to .js instead of
    .cjs.
    
    Fixes #194
    wagoid committed Jul 17, 2021
    Copy the full SHA
    2e57812 View commit details
  2. Merge pull request #197 from wagoid/fix/build-the-action-with-rollup

    fix: build the action with rollup
    wagoid authored Jul 17, 2021
    Copy the full SHA
    974c690 View commit details
  3. chore(release): publish 4.0.3 [skip-ci]

    GitHub Action committed Jul 17, 2021
    Copy the full SHA
    66a6cf0 View commit details
  4. Copy the full SHA
    d6d6fc0 View commit details
  5. Merge pull request #198 from wagoid/fix/commitlint-plugin-function-rules

    feat: officially support commitlint-plugin-function-rules
    wagoid authored Jul 17, 2021
    Copy the full SHA
    7a9b696 View commit details
  6. chore(release): publish 4.1.0 [skip-ci]

    GitHub Action committed Jul 17, 2021
    Copy the full SHA
    ef84115 View commit details
  7. Copy the full SHA
    940dc8a View commit details
  8. Copy the full SHA
    d126fb6 View commit details
  9. Merge pull request #162 from wagoid/dependabot/npm_and_yarn/actions/g…

    …ithub-5.0.0
    
    chore(deps): bump @actions/github from 4.0.0 to 5.0.0
    wagoid authored Jul 17, 2021
    Copy the full SHA
    0fe4132 View commit details
  10. chore(release): publish 4.1.1 [skip-ci]

    GitHub Action committed Jul 17, 2021
    Copy the full SHA
    59203cb View commit details

Commits on Sep 1, 2021

  1. chore(deps): bump actions/setup-node from 2.2.0 to 2.4.0

    Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.2.0 to 2.4.0.
    - [Release notes](https://github.com/actions/setup-node/releases)
    - [Commits](actions/setup-node@v2.2.0...v2.4.0)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-node
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 1, 2021
    Copy the full SHA
    c83839c View commit details

Commits on Sep 11, 2021

  1. ci: restrict permissions for the GITHUB_TOKEN in .github/workflows/ci…

    ….yml (#231)
    
    Co-authored-by: Step Security <bot@stepsecurity.io>
    varunsh-coder and step-security-bot authored Sep 11, 2021
    Copy the full SHA
    0e361e0 View commit details
  2. chore(release): publish 4.1.2 [skip-ci]

    GitHub Action committed Sep 11, 2021
    Copy the full SHA
    3f5090c View commit details
  3. Copy the full SHA
    961b6d4 View commit details
  4. Copy the full SHA
    42197aa View commit details
  5. Copy the full SHA
    0eaaf56 View commit details
  6. Copy the full SHA
    bf83d2b View commit details
  7. Merge pull request #232 from wagoid/fix/signed-off-by-check

    fix: action failing to check footer of a single commit
    wagoid authored Sep 11, 2021
    Copy the full SHA
    a7a2424 View commit details
  8. chore(deps): bump @commitlint/config-angular from 12.1.4 to 13.1.0

    Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint) from 12.1.4 to 13.1.0.
    - [Release notes](https://github.com/conventional-changelog/commitlint/releases)
    - [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md)
    - [Commits](conventional-changelog/commitlint@v12.1.4...v13.1.0)
    
    ---
    updated-dependencies:
    - dependency-name: "@commitlint/config-angular"
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 11, 2021
    Copy the full SHA
    839a3f7 View commit details
  9. chore(release): publish 4.1.3 [skip-ci]

    GitHub Action committed Sep 11, 2021
    Copy the full SHA
    aa79c68 View commit details
  10. chore(deps): bump @actions/core from 1.4.0 to 1.5.0

    Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.4.0 to 1.5.0.
    - [Release notes](https://github.com/actions/toolkit/releases)
    - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
    - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)
    
    ---
    updated-dependencies:
    - dependency-name: "@actions/core"
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 11, 2021
    Copy the full SHA
    6c6aec8 View commit details
  11. Merge pull request #220 from wagoid/dependabot/github_actions/actions…

    …/setup-node-2.4.0
    
    chore(deps): bump actions/setup-node from 2.2.0 to 2.4.0
    wagoid authored Sep 11, 2021
    Copy the full SHA
    ab0b376 View commit details
  12. Merge pull request #200 from wagoid/dependabot/npm_and_yarn/commitlin…

    …t/config-angular-13.1.0
    
    chore(deps): bump @commitlint/config-angular from 12.1.4 to 13.1.0
    wagoid authored Sep 11, 2021
    Copy the full SHA
    e6b5342 View commit details
  13. Merge pull request #229 from wagoid/dependabot/npm_and_yarn/actions/c…

    …ore-1.5.0
    
    chore(deps): bump @actions/core from 1.4.0 to 1.5.0
    wagoid authored Sep 11, 2021
    Copy the full SHA
    4b95a40 View commit details
  14. chore(release): publish 4.1.4 [skip-ci]

    GitHub Action committed Sep 11, 2021
    Copy the full SHA
    82cf16a View commit details

Commits on Oct 1, 2021

  1. chore(deps-dev): bump prettier from 2.3.2 to 2.4.1 (#238)

    Bumps [prettier](https://github.com/prettier/prettier) from 2.3.2 to 2.4.1.
    - [Release notes](https://github.com/prettier/prettier/releases)
    - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/prettier@2.3.2...2.4.1)
    
    ---
    updated-dependencies:
    - dependency-name: prettier
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 1, 2021
    Copy the full SHA
    67d03d3 View commit details
  2. chore(deps-dev): bump @rollup/plugin-node-resolve from 13.0.4 to 13.0…

    ….5 (#251)
    
    Bumps [@rollup/plugin-node-resolve](https://github.com/rollup/plugins/tree/HEAD/packages/node-resolve) from 13.0.4 to 13.0.5.
    - [Release notes](https://github.com/rollup/plugins/releases)
    - [Changelog](https://github.com/rollup/plugins/blob/master/packages/node-resolve/CHANGELOG.md)
    - [Commits](https://github.com/rollup/plugins/commits/node-resolve-v13.0.5/packages/node-resolve)
    
    ---
    updated-dependencies:
    - dependency-name: "@rollup/plugin-node-resolve"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 1, 2021
    Copy the full SHA
    72a676a View commit details
  3. chore(deps-dev): bump jest from 27.1.1 to 27.2.4 (#242)

    Bumps [jest](https://github.com/facebook/jest) from 27.1.1 to 27.2.4.
    - [Release notes](https://github.com/facebook/jest/releases)
    - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
    - [Commits](jestjs/jest@v27.1.1...v27.2.4)
    
    ---
    updated-dependencies:
    - dependency-name: jest
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 1, 2021
    Copy the full SHA
    8afa4f7 View commit details
  4. chore(deps-dev): bump @jest/globals from 27.1.1 to 27.2.4 (#241)

    Bumps [@jest/globals](https://github.com/facebook/jest/tree/HEAD/packages/jest-globals) from 27.1.1 to 27.2.4.
    - [Release notes](https://github.com/facebook/jest/releases)
    - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/facebook/jest/commits/v27.2.4/packages/jest-globals)
    
    ---
    updated-dependencies:
    - dependency-name: "@jest/globals"
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 1, 2021
    Copy the full SHA
    b3d9151 View commit details
  5. chore(deps): bump @actions/core from 1.5.0 to 1.6.0 (#240)

    Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.5.0 to 1.6.0.
    - [Release notes](https://github.com/actions/toolkit/releases)
    - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
    - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)
    
    ---
    updated-dependencies:
    - dependency-name: "@actions/core"
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 1, 2021
    Copy the full SHA
    d64c041 View commit details
  6. chore(deps): bump actions/setup-node from 2.4.0 to 2.4.1 (#239)

    Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.4.0 to 2.4.1.
    - [Release notes](https://github.com/actions/setup-node/releases)
    - [Commits](actions/setup-node@v2.4.0...v2.4.1)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-node
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 1, 2021
    Copy the full SHA
    06bd01f View commit details
  7. chore(release): publish 4.1.5 [skip-ci]

    GitHub Action committed Oct 1, 2021
    Copy the full SHA
    8d669e3 View commit details
  8. chore(deps-dev): bump rollup from 2.56.3 to 2.58.0 (#253)

    Bumps [rollup](https://github.com/rollup/rollup) from 2.56.3 to 2.58.0.
    - [Release notes](https://github.com/rollup/rollup/releases)
    - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md)
    - [Commits](rollup/rollup@v2.56.3...v2.58.0)
    
    ---
    updated-dependencies:
    - dependency-name: rollup
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Oct 1, 2021
    Copy the full SHA
    11aebb1 View commit details

Commits on Oct 11, 2021

  1. Copy the full SHA
    79c0cab View commit details
  2. Merge pull request #254 from wagoid/chore/bump-commitlint-packages

    chore(deps): upgrade @Commitlint-config* packages
    wagoid authored Oct 11, 2021
    Copy the full SHA
    2b3e442 View commit details
  3. chore(release): publish 4.1.6 [skip-ci]

    GitHub Action committed Oct 11, 2021
    Copy the full SHA
    6981d84 View commit details
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -9,3 +9,4 @@ src/action.test.js
src/testUtils.js
.eslintignore
.eslintrc.json
.nvmrc
15 changes: 14 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
{
"extends": ["airbnb-base", "prettier", "plugin:node/recommended"],
"plugins": ["prettier"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js"]
}
}
},
"rules": {
"prettier/prettier": "error",
"no-console": "off",
"no-process-exit": "off",
"node/no-unpublished-require": "off"
"node/no-unpublished-require": "off",
"node/no-unpublished-import": "off",
"node/no-unsupported-features/es-syntax": "off"
}
}
25 changes: 15 additions & 10 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 99
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 99

- package-ecosystem: npm
directory: /
schedule:
interval: monthly
open-pull-requests-limit: 99
- package-ecosystem: npm
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 99

- package-ecosystem: docker
directory: /
schedule:
interval: weekly
6 changes: 3 additions & 3 deletions .github/tasks/actionYamlUpdater.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// eslint-disable-next-line import/no-extraneous-dependencies
const yaml = require('yaml')

yaml.scalarOptions.str.fold.lineWidth = 100

const versionRegex = /\d+\.\d+\.\d+/

module.exports.readVersion = (contents) =>
@@ -12,5 +10,7 @@ module.exports.writeVersion = (contents, version) => {
const actionFile = yaml.parse(contents)
actionFile.runs.image = actionFile.runs.image.replace(versionRegex, version)

return yaml.stringify(actionFile)
return yaml.stringify(actionFile, {
lineWidth: 100,
})
}
21 changes: 14 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -3,14 +3,16 @@ on: [push]

jobs:
sanity-checks:
permissions:
contents: read
name: Sanity Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.5
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '12.x'
- uses: actions/cache@v2.1.4
- uses: actions/cache@v3
with:
path: |
~/.npm
@@ -22,19 +24,24 @@ jobs:
- run: npm run lint
- run: npm test -- --ci --coverage
release:
permissions:
contents: write
needs: sanity-checks
runs-on: ubuntu-latest
if: "github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
if: >
github.ref == 'refs/heads/master'
&& !contains(toJSON(github.event.commits.*.message), '[skip-ci]')
&& !contains(toJSON(github.event.commits.*.message), 'chore(deps-dev)')
env:
DOCKER_REGISTRY_URL: registry.hub.docker.com
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v3
with:
node-version: '12.x'
- uses: actions/cache@v2.1.4
- uses: actions/cache@v3
with:
path: |
~/.npm
12 changes: 6 additions & 6 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -5,15 +5,15 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: sed -i -E "s/(docker:.+)/Dockerfile/" ./action.yml
- run: echo -n '' > .dockerignore
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v3
with:
node-version: '14'
- uses: actions/cache@v2.1.4
- uses: actions/cache@v3
with:
path: |
~/.npm
@@ -32,13 +32,13 @@ jobs:
commitlint-pulling-from-docker-hub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2.1.5
- uses: actions/setup-node@v3
with:
node-version: '14'
- uses: actions/cache@v2.1.4
- uses: actions/cache@v3
with:
path: |
~/.npm
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -59,3 +59,6 @@ typings/

# next.js build output
.next

# Dist files
dist
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "${1}"
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.5.0
15 changes: 0 additions & 15 deletions .versionrc.js

This file was deleted.

12 changes: 12 additions & 0 deletions .versionrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"packageFiles": ["package.json"],
"bumpFiles": [
"package.json",
"package-lock.json",
{
"filename": "action.yml",
"updater": "./.github/tasks/actionYamlUpdater.js"
}
],
"releaseCommitMessageFormat": "chore(release): publish {{currentTag}} [skip-ci]"
}
82 changes: 82 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,88 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [4.1.15](https://github.com/wagoid/commitlint-github-action/compare/v4.1.14...v4.1.15) (2022-06-16)

### [4.1.14](https://github.com/wagoid/commitlint-github-action/compare/v4.1.13...v4.1.14) (2022-06-16)

### [4.1.13](https://github.com/wagoid/commitlint-github-action/compare/v4.1.12...v4.1.13) (2022-06-16)

### [4.1.12](https://github.com/wagoid/commitlint-github-action/compare/v4.1.11...v4.1.12) (2022-05-07)


### Bug Fixes

* set workspace directory as safe in the entrypoint ([ce9a8cb](https://github.com/wagoid/commitlint-github-action/commit/ce9a8cb8ca913ad31123ebcfb3ce88061fe7108e)), closes [/github.com/actions/checkout/issues/760#issuecomment-1098135955](https://github.com/wagoid//github.com/actions/checkout/issues/760/issues/issuecomment-1098135955)

### [4.1.11](https://github.com/wagoid/commitlint-github-action/compare/v4.1.10...v4.1.11) (2022-04-06)

### [4.1.10](https://github.com/wagoid/commitlint-github-action/compare/v4.1.9...v4.1.10) (2022-04-01)

### [4.1.9](https://github.com/wagoid/commitlint-github-action/compare/v4.1.8...v4.1.9) (2021-10-11)


### Bug Fixes

* use helpUrl from config when present ([6f0b49b](https://github.com/wagoid/commitlint-github-action/commit/6f0b49bb7b70977c2f0ea471a0282d21d5a8aab5)), closes [#234](https://github.com/wagoid/commitlint-github-action/issues/234)

### [4.1.8](https://github.com/wagoid/commitlint-github-action/compare/v4.1.7...v4.1.8) (2021-10-11)

### [4.1.7](https://github.com/wagoid/commitlint-github-action/compare/v4.1.6...v4.1.7) (2021-10-11)

### [4.1.6](https://github.com/wagoid/commitlint-github-action/compare/v4.1.5...v4.1.6) (2021-10-11)

### [4.1.5](https://github.com/wagoid/commitlint-github-action/compare/v4.1.4...v4.1.5) (2021-10-01)

### [4.1.4](https://github.com/wagoid/commitlint-github-action/compare/v4.1.3...v4.1.4) (2021-09-11)

### [4.1.3](https://github.com/wagoid/commitlint-github-action/compare/v4.1.2...v4.1.3) (2021-09-11)


### Bug Fixes

* action failing to check footer of a single commit ([961b6d4](https://github.com/wagoid/commitlint-github-action/commit/961b6d4cd7565e86ea5e28bcb015042ae2022f4f)), closes [#187](https://github.com/wagoid/commitlint-github-action/issues/187)
* vulnerabilities from npm audit ([bf83d2b](https://github.com/wagoid/commitlint-github-action/commit/bf83d2b35c4177779d047f464b48d9907f2c5201))

### [4.1.2](https://github.com/wagoid/commitlint-github-action/compare/v4.1.1...v4.1.2) (2021-09-11)

### [4.1.1](https://github.com/wagoid/commitlint-github-action/compare/v4.1.0...v4.1.1) (2021-07-17)

## [4.1.0](https://github.com/wagoid/commitlint-github-action/compare/v4.0.3...v4.1.0) (2021-07-17)


### Features

* officially support commitlint-plugin-function-rules ([d6d6fc0](https://github.com/wagoid/commitlint-github-action/commit/d6d6fc0ae0ec45f7b495ae44a78ec5499877ae0d)), closes [#196](https://github.com/wagoid/commitlint-github-action/issues/196)

### [4.0.3](https://github.com/wagoid/commitlint-github-action/compare/v4.0.2...v4.0.3) (2021-07-17)


### Bug Fixes

* build the action with rollup ([2e57812](https://github.com/wagoid/commitlint-github-action/commit/2e578124a54b446aaf8dfa6d7c71d92e2d6a3de7)), closes [#194](https://github.com/wagoid/commitlint-github-action/issues/194)

### [4.0.2](https://github.com/wagoid/commitlint-github-action/compare/v4.0.1...v4.0.2) (2021-07-15)


### Bug Fixes

* default to .cjs extension in config files ([5b6cd1b](https://github.com/wagoid/commitlint-github-action/commit/5b6cd1b23af3fcd4e6df552d48cc01dff41262dd))

### [4.0.1](https://github.com/wagoid/commitlint-github-action/compare/v4.0.0...v4.0.1) (2021-07-15)

## [4.0.0](https://github.com/wagoid/commitlint-github-action/compare/v3.1.4...v4.0.0) (2021-07-15)


### ⚠ BREAKING CHANGES

* Node.js version used on the action updated from 12 to
16

### Features

* update dependencies that needed to switch to ESM syntax ([5463926](https://github.com/wagoid/commitlint-github-action/commit/5463926c07584c419d865a3fc9efdb382be54995))
* upgrade to node.js 16 to support ES modules by default ([30d514f](https://github.com/wagoid/commitlint-github-action/commit/30d514f252505053d2e65896a0865ff0302b7233))

### [3.1.4](https://github.com/wagoid/commitlint-github-action/compare/v3.1.3...v3.1.4) (2021-05-19)

### [3.1.3](https://github.com/wagoid/commitlint-github-action/compare/v3.1.2...v3.1.3) (2021-05-10)
16 changes: 14 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
FROM node:12-alpine3.9
FROM node:16.14.2-alpine3.14 as build

COPY package*.json /

RUN npm ci --ignore-scripts

COPY . .

RUN npm run build

FROM node:16.5.0-alpine3.14

RUN apk --no-cache add git

COPY --from=build dist/run.js /run.js

COPY package*.json /

RUN npm ci --production --ignore-scripts

COPY . .
COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -14,10 +14,10 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v3
- uses: wagoid/commitlint-github-action@v4
```
Alternatively, you can run on other event types such as `on: [push]`. In that case the action will lint the push event's commit(s) instead of linting commits from a pull request. You can also combine `push` and `pull_request` together in the same workflow.
@@ -26,7 +26,7 @@ Alternatively, you can run on other event types such as `on: [push]`. In that ca

## Inputs

You can supply these inputs to the `wagoid/commitlint-github-action@v3` step.
You can supply these inputs to the `wagoid/commitlint-github-action@v4` step.

### `configFile`

@@ -120,6 +120,7 @@ This is a [`Docker` action](https://github.com/actions/toolkit/blob/e2adf403d6d1
- [@commitlint/config-patternplate](https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-patternplate)
- [conventional-changelog-lint-config-canonical](https://github.com/gajus/conventional-changelog-lint-config-canonical)
- [commitlint-config-jira](https://github.com/Gherciu/commitlint-jira)
- [commitlint-config-function-rules](https://github.com/vidavidorra/commitlint-plugin-function-rules#readme)

Apart from the shared configurations that are included by default, you can also include extra dependencies for other configs and plugins that you want to use.

@@ -133,16 +134,16 @@ jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install
# Run the commitlint action, considering its own dependencies and yours as well 🚀
# `github.workspace` is the path to your repository.
- uses: wagoid/commitlint-github-action@v3
- uses: wagoid/commitlint-github-action@v4
env:
NODE_PATH: ${{ github.workspace }}/node_modules
```
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@ outputs:
description: The error and warning messages for each one of the analyzed commits
runs:
using: docker
image: docker://wagoid/commitlint-github-action:3.1.4
image: docker://wagoid/commitlint-github-action:4.1.12
branding:
icon: check-square
color: blue
6 changes: 6 additions & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [["@babel/preset-env"]],
"targets": {
"node": "16.5.0"
}
}
Loading