You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -137,8 +137,6 @@ with:
137
137
138
138
Show only new issues.
139
139
140
-
If you are using `merge_group` event (merge queue) you should add the option `fetch-depth: 0` to `actions/checkout` step.
141
-
142
140
The default value is `false`.
143
141
144
142
```yml
@@ -148,6 +146,11 @@ with:
148
146
# ...
149
147
```
150
148
149
+
* `pull_request` and `pull_request_target`: the action will get 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`.
150
+
* `push`: the action will get 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`.
151
+
* `merge_group`: the action will get the diff by using `--new-from-rev` option (relies on git).
152
+
You should add the option `fetch-depth: 0` to `actions/checkout` step.
0 commit comments