Michal Dorner
138368ff4f
Use ref instead of HEAD
2021-03-09 21:56:18 +01:00
Michal Dorner
a301a0ad83
Refactor getChangesSinceMergeBase() code
2021-03-09 21:44:15 +01:00
Michal Dorner
0c0d1a854a
Fetch base and search merge-base without creating local branch
2021-03-09 21:13:57 +01:00
Michal Dorner
0aa1597c2b
Merge pull request #74 from dorny/fix-searching-for-merge-base
...
Fix fetching git history + fallback to unshallow repo
2021-03-08 17:11:16 +01:00
Michal Dorner
46d2898cef
Update CHANGELOG
2021-03-08 17:10:14 +01:00
Michal Dorner
c90ecaa5a1
Increase default value of initial-fetch-depth to 100
...
For most situation it should be enough to find merge base. Previous value was too slow and overhead of doing fetch was significantly higher than saving of transfer.
2021-03-08 17:06:12 +01:00
Michal Dorner
49abb091ed
Use combination of --depth and --deepen
2021-03-08 17:00:52 +01:00
Michal Dorner
8801c887e9
Do not try to update head of current branch
2021-03-08 15:29:27 +01:00
Michal Dorner
68792bf56a
Allow single line filters
2021-03-08 15:24:06 +01:00
Michal Dorner
31c576896e
Fix lastCommitCount has not been updated
2021-03-08 15:12:58 +01:00
Michal Dorner
3be8c93277
Fix fetching git history + fallback to unshallow repo
2021-03-08 15:09:07 +01:00
Michal Dorner
1cdd3bbdf6
Fix typo in README
2021-02-24 11:24:20 +01:00
Michal Dorner
e5b96fe4da
Merge pull request #68 from dorny/list-files-csv
...
Add list-files: csv format
2021-02-20 11:32:11 +01:00
Michal Dorner
a339507743
Skip CI when modifying only README or CHANGELOG
2021-02-20 11:30:21 +01:00
Michal Dorner
febe8330ca
Update README and CHANGELOG
2021-02-20 11:28:11 +01:00
Michal Dorner
b5fa2d5c02
Add list-files: csv format
2021-02-20 11:21:30 +01:00
Michal Dorner
e2bed85912
Mention test-reporter in README
2021-02-01 21:58:39 +01:00
Michal Dorner
7c0f15b688
Update CHANGELOG
2021-01-29 20:10:42 +01:00
Michal Dorner
cbc3287af3
Merge pull request #65 from dorny/add-count-output
...
Add count output
2021-01-29 20:03:56 +01:00
Michal Dorner
a2730492f0
Add test for ${FILTER_NAME}_count
output
2021-01-29 19:59:09 +01:00
Michal Dorner
c2766acabb
Add ${FILTER_NAME}_count
output
2021-01-29 19:54:44 +01:00
Michal Dorner
363576b9ea
Merge pull request #61 from tun0/fix-grouping
...
Fix grouping of changes
2021-01-26 21:31:41 +01:00
Michal Dorner
b1a097ef7b
Rebuild dist/index.js
2021-01-26 21:28:06 +01:00
Ruben Laban
2c79a825c0
Fix grouping
2021-01-26 12:22:37 +01:00
Michal Dorner
4e7fcc37b4
Fix link to CHANGELOG in README
2020-12-17 22:54:24 +01:00
Michal Dorner
c506bed1ae
Update CHANGELOG.md for v2.7.0
2020-12-17 22:51:53 +01:00
Michal Dorner
9b7572ffb2
Merge pull request #59 from dorny/array-to-use-in-matrix
...
Add "changes" output variable to support matrix job configuration
2020-12-17 22:48:28 +01:00
Michal Dorner
9e8c9af501
Add "changes" output variable to support matrix job configuration
2020-12-17 22:33:11 +01:00
Michal Dorner
84e1697bff
Merge pull request #58 from dorny/unquoted-shell-escape
...
Improved listing of matching files with `list-files: shell` and `list-files: escape` options
2020-12-17 22:28:11 +01:00
Michal Dorner
e4d886f503
Provide shell
and escape
options when formatting matching files
2020-12-17 22:13:28 +01:00
Michal Dorner
ada1eee648
Simplify shell escaping - escape chars instead of quoting whole string
2020-12-17 22:13:28 +01:00
Michal Dorner
44ac6d8e25
Merge pull request #57 from lgatto/patch-1
...
Fix typos in README.md
2020-12-17 10:28:30 +01:00
Laurent Gatto
3c5b7d242c
Update README.md
2020-12-17 08:57:31 +01:00
Michal Dorner
eb75a1edc1
Merge pull request #53 from dorny/detect-local-changes
...
Support local changes
2020-11-22 21:17:54 +01:00
Michal Dorner
181b35e268
Update docs for v2.6.0
2020-11-22 21:17:07 +01:00
Michal Dorner
1934d574ce
Support local changes
2020-11-22 20:59:32 +01:00
Michal Dorner
d599443ba5
Fix change detection using Github API ( #51 )
2020-11-13 20:15:41 +01:00
Michal Dorner
eb8fe2c24b
Update dist/index.js and docs after PR #50
2020-11-13 18:55:57 +01:00
Michal Dorner
dec8b8030e
Merge pull request #50 from simllll/patch-1
...
fix: retrieve all changes via api
2020-11-13 18:48:29 +01:00
Simon Tretter
785a14adbe
fix: add missing Octokit import
2020-11-13 17:30:27 +01:00
Simon Tretter
e84bc6af29
fix: retrieve all changes via api
...
the number returned by pullRequest.changed_files doesn't reflect the correct number of real changed files. Therefore lot of filters didn't work in my scenario, as it said nothing has changed. This especially happens if there are more than 100 files changed (first time I experienced it where over 1000 files have changed, and now when there were about 300 files that have changed).
I changed the detection by querying the api as long as it returns new results. This ensures all pages have been retrieved. It's tested and used in production on our end, but please check again if I didn't miss anything.
Thanks a lot for this awesome github action :)
2020-11-13 17:28:22 +01:00
Michal Dorner
b4eabb6049
Use picomatch + impl followups from #48
2020-11-09 00:45:53 +01:00
Michal Dorner
550eb4925d
Merge pull request #48 from getsentry/master
...
feat: Add support for multiple patterns when using file status
2020-11-09 00:26:00 +01:00
Billy Vong
5282566eab
feat: Add support for multiple patterns when using file status
...
This adds support for using multiple patterns when checking for file status (added, modified, deleted) and as a result also allows you to use YAML anchors.
2020-11-06 17:41:51 -08:00
Billy Vong
804ec66d7a
Fix typo in README example ( #47 )
...
The example was missing `outputs`
2020-11-03 09:23:07 +01:00
Michal Dorner
b37d4e9e86
Use micromatch instead of minimatch ( #46 )
...
* Use micromatch instead of minimatch
micromatch claims to support full Bash 4.3 spec and it actually passes all the tests.
For example this fixes processing of '!(**/*.tsx|**/*.less)' pattern - needed by #45
* Update CHANGELOG.md
2020-10-23 12:33:44 +02:00
Michal Dorner
7b5334ddb5
Add links to some real world usage examples
2020-10-17 22:38:15 +02:00
Michal Dorner
75cbfb4be9
Support workflows triggered by any event ( #44 )
...
* Allow change detection on all event types
* mention commit SHA in docs for base parameter
* improve logging
* update CHANGELOG.md
2020-10-16 12:28:12 +02:00
Michal Dorner
9bd03c0d68
Update CHANGELOG.md
2020-10-06 13:40:13 +02:00
Michal Dorner
9553dabbd8
Remove usage of --no-auto-gc option ( #42 )
...
* Remove usage of --no-auto-gc option
This option is not supported in git versions < 2.23.
Older git versions might be used in self-hosted runners.
* Update CHANGELOG
2020-10-06 13:38:18 +02:00