mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-14 23:11:14 +00:00
doc: add detailled only-new-issues explanation
This commit is contained in:
parent
f1589cac6a
commit
562d03e05b
1 changed files with 5 additions and 2 deletions
|
|
@ -137,8 +137,6 @@ with:
|
|||
|
||||
Show only new issues.
|
||||
|
||||
If you are using `merge_group` event (merge queue) you should add the option `fetch-depth: 0` to `actions/checkout` step.
|
||||
|
||||
The default value is `false`.
|
||||
|
||||
```yml
|
||||
|
|
@ -148,6 +146,11 @@ with:
|
|||
# ...
|
||||
```
|
||||
|
||||
* `pull_request` and `pull_request_target`: the action gets the diff of the PR content from the [GitHub API](https://docs.github.com/en/rest/pulls/pulls?apiVersion=2022-11-28#get-a-pull-request) and use it with `--new-from-patch`.
|
||||
* `push`: the action gets the diff of the push content (difference between commits before and after the push) from the [GitHub API](https://docs.github.com/en/rest/commits/commits?apiVersion=2022-11-28#compare-two-commits) and use it with `--new-from-patch`.
|
||||
* `merge_group`: the action gets the diff by using `--new-from-rev` option (relies on git).
|
||||
You should add the option `fetch-depth: 0` to `actions/checkout` step.
|
||||
|
||||
### `working-directory`
|
||||
|
||||
(optional)
|
||||
|
|
|
|||
Loading…
Reference in a new issue