5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 16:06:56 +00:00
Commit graph

18 commits

Author SHA1 Message Date
wagoid
5463926c07 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
2021-07-07 15:17:00 -03:00
wagoid
9e5880e3f8 chore(deps): upgrade @commitlint dependencies
Resolves #187
2021-07-07 15:15:36 -03:00
wagoid
de51303046 feat: add support for pull_request_target event
Previously, the action was treating pull_request_target event as a regular push,
which was causing some issues.
2021-04-05 09:13:29 -03:00
Wagner Santos
51913c302c style: add eslint to the project
The config is based on airbnb shared config, with some rules that work better with the project.
2021-02-18 14:43:25 -03:00
Wagner Santos
35f989c47c test: remove unneeded update of GITHBU_TOKEN env var 2021-02-17 10:52:25 -03:00
Wagner Santos
84dd7685c6 fix: call getOctokit function instead of removed Github constructor 2021-02-17 10:51:18 -03:00
Frazer Smith
7c72676b5b
build(deps): remove uuid
Not used
2021-02-10 14:28:48 +00:00
Wagner Santos
a34ac47c34 feat: add outputs generation again
As mentioned on https://github.com/actions/toolkit/issues/702#issuecomment-774269650,
we are safe to execute commands on our side.

This reverts commit 58072cd806, reversing
changes made to 1788ebdc06.
2021-02-07 07:17:51 -03:00
Wagner Santos
b674cd3ec4 fix: remove output generation
After the CVE-2020-15228 vulnerability,
we can't issue commands with sensitive data on this action anymore.

Due to that, the JSON output that this action generated was removed.
2021-01-28 19:37:14 -03:00
Wagner Santos
1128358de3 fix: stop trying to issue commands on failures
Commands are disabled, so we should not use `core.setFailed` on errors anymore.

Closes #70
2021-01-28 19:34:06 -03:00
ylemkimon
d67c2ec96c fix: do not run workflow commands in commit messages 2020-11-11 17:04:48 +00:00
Fred
7e678913ff feat: use config-conventional as default config 2020-09-07 12:42:19 +00:00
Wagner Santos
0911cae009 fix: action shows error ouput when not all commits have warnings
Fixes #43
2020-08-20 08:33:46 -03:00
Wagner Santos
18e9bff0e6 feat: use action input instead of env var to get the github token
BREAKING CHANGE: GITHUB_TOKEN env var is now ignored. In case a custom token is needed,
it'll be necessary to pass it via the `token` input from now on.
2020-08-02 11:23:03 -03:00
Wagner Santos
a413a3f439 feat: upgrade commitlint dependencies to v9
BREAKING CHANGE: this includes breaking changes from commitlint v9,
like the fact that `improvement` type is now rejected in `@commitlint/config-conventional`.
2020-08-02 11:22:53 -03:00
Wagner Santos
0c7da1b0a2 test: add output tests for PR scenario 2020-08-02 06:49:40 -03:00
Wagner Santos
231d02e17f test: add test to expect an output on success scenario too 2020-08-02 06:49:40 -03:00
Wagner Santos
25a8edceb7 refactor: move action files to src folder 2020-08-02 06:42:21 -03:00