Wagner Santos
624945381b
fix: make sure action passes when event doesn't have commits fixes #746
2023-07-23 07:31:18 -03:00
Wagner Santos
a31f4b5793
feat!: use github event payload and API to list commits resolves #456
...
That way we guarantee we're linting the same commits that appear on github.
BREAKING CHANGE: "firstParent" option has been removed
2023-07-22 09:00:21 -03:00
Wagner Santos
2be323bc44
feat: list up to 100 commits at once resolves #717
2023-07-22 09:00:04 -03:00
Cooper
d4e1e800cd
fix(action): move info sequence for failonerrors
2023-04-10 15:10:08 -04:00
Cooper
00cf65022f
fix(action): move info sequence for failonerrors
2023-04-10 15:05:29 -04:00
Cooper
0a35ed499e
fix(action): removed unnecessary setOutput call
2023-04-10 12:32:22 -04:00
Cooper
097b726807
fix(tests): remove log
2023-04-07 11:32:04 -04:00
Cooper
7991e57b35
fix(action): refactor a value, add to docs
2023-04-05 12:11:01 -04:00
Cooper
2640e4c8bf
fix(action): fix bug with value, add tests
2023-04-05 11:23:02 -04:00
Cooper
83467da07b
feat(action): adds flag to optionally fail on errors
2023-04-03 16:46:31 -04:00
Sakethtadimeti
b0982e3b0a
feat: adds commitDepth as new input param
2022-11-20 13:45:17 +05:30
Wagner Santos
8b8230b1f5
feat(deps): update commitlint-config-jira and commitlint-config-jira-rules to 1.6.4
2022-10-07 09:05:36 -03:00
wagoid
6f0b49bb7b
fix: use helpUrl from config when present
...
Fixes #234
2021-10-11 15:46:36 -03:00
wagoid
961b6d4cd7
fix: action failing to check footer of a single commit
...
Fixes #187
2021-09-11 08:32:21 -03:00
dependabot[bot]
940dc8ae05
chore(deps): bump @actions/github from 4.0.0 to 5.0.0
...
Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github ) from 4.0.0 to 5.0.0.
- [Release notes](https://github.com/actions/toolkit/releases )
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md )
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github )
Signed-off-by: dependabot[bot] <support@github.com>
2021-07-17 16:57:22 -03:00
wagoid
2e578124a5
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
2021-07-17 12:19:13 -03:00
wagoid
5b6cd1b23a
fix: default to .cjs extension in config files
2021-07-15 15:51:26 -03:00
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