73 Commits
Author SHA1 Message Date
Michal Dorner 44adc5b06d Merge commit from fork
fix: escape multi-line filenames in list-files shell and csv output
2026-08-05 12:02:19 +02:00
Pavel Kutáč 4711b7a31b feat: add 'some-with-excludes' predicate quantifier (#322) 2026-07-31 17:44:02 -04:00
Ken Matsui 93c889f9e5 fix: escape multi-line filenames in list-files shell and csv output
Fixes GHSA-7hc6-8hq5-9q2m
2026-07-30 23:48:19 -04:00
Sascha Bratton 9af6e5a9d0 fix: scope base-ignored warning to API path (#319) 2026-07-02 21:33:01 -04:00
Sascha Bratton 928037783a fix: work around git dubious ownership errors in container jobs (#317) 2026-07-02 13:41:07 -04:00
Sascha Bratton f3ceefdc7e fix: use rev-parse instead of branch --show-current for older git compat (#303) 2026-04-10 17:44:48 -04:00
Lucas Servén MarínandSascha Bratton 61f87a10cd chore: fix GitHub spelling in logs (#278)
* chore: fix GitHub spelling in logs

* fix: rebuild dist

---------

Co-authored-by: Sascha Bratton <sascha@queen.one>
2026-03-25 12:27:15 -04:00
Carly GundyandSascha Bratton b82ff81ffb fix warning message (#282)
* fix warning message

* fix: rebuild dist

---------

Co-authored-by: Sascha Bratton <sascha@queen.one>
2026-03-25 12:19:27 -04:00
Masaru IritaniandSascha Bratton fbd0ab8f3e feat: add merge_group event support
* Detect commit hashes from merge_group event

* Apply suggestion from @masaru-iritani

Co-authored-by: Masaru Iritani <25241373+masaru-iritani@users.noreply.github.com>

* refactor: update PullRequest type usage in getChangedFilesFromApi and related functions

* Run `npm run pack`

---------

Co-authored-by: Sascha Bratton <sascha@brattonbratton.com>
2026-03-13 21:50:09 -04:00
Michal Dorner de90cc6fb3 Update dist and CHANGELOG for v3.0.2 2024-03-02 23:11:12 +01:00
Peter Somogyvari f90d5265d6 feat: add config parameter for predicate quantifier
Setting the new 'predicate-quantifier' configuration parameter to 'every'
makes it so that all the patterns have to match a file for it to be
considered changed.

This can be leveraged to ensure that you only build & test software changes
that have real impact on the behavior of the code, e.g. you can set up your
build to run when Typescript/Rust/etc. files are changed but markdown
changes in the diff will be ignored and you consume less resources to build.

The default behavior does not change by the introduction of this feature
so upgrading can be done safely knowing that existing workflows will not
break.

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
2024-02-22 12:48:55 -08:00
Michal Dorner 5da0e4c086 Merge branch 'master' 2024-02-15 09:13:51 +01:00
Michal Dorner 2f74457227 Update all dependencies 2024-01-24 22:50:18 +01:00
Florent Poinsard 245527a2ef Merge remote-tracking branch 'upstream/master' 2022-10-26 15:40:33 +02:00
Michal Dorner 248cda557c Use Octokit pagination 2022-10-11 23:48:07 +02:00
Michal Dorner ce8f47aa7f Fix incorrect handling of Unicode characters in exec() 2022-10-11 23:01:54 +02:00
Florent Poinsard 5266f0ac59 Compare base and ref when token is empty
Signed-off-by: Florent Poinsard <florent.poinsard@outlook.fr>
2022-04-19 14:29:04 +02:00
Michal Dorner af2564d3e0 Fix #90 getLocalRef() returns wrong ref
git show-ref will return all branches where end segment matches the input. This cause issues when there are both 'someBranch' and 'somePrefix/someBranch' branches. This fix ensures the correct ref is returned by explicitly matching segments after common parts (e.g. refs/heads).
2021-06-14 10:20:58 +02:00
Michal Dorner e59743163d Fix unnecessary calls to getLocalRef() 2021-04-12 22:46:34 +02:00
Michal Dorner 78b1672eeb Fix missing await 2021-04-12 22:31:38 +02:00
Michal Dorner f1c461fccf Fix logging inside ensureRefAvailable() 2021-04-12 22:22:57 +02:00
Michal Dorner 0b18612ac3 Improve support for PR events + verify base and ref are used correctly 2021-04-12 16:29:29 +02:00
Michal Dorner d0507d9a8a Improve log output 2021-04-11 21:39:09 +02:00
Michal Dorner 8d029eb508 Fix change detection in PR when pullRequest.changed_files was incorrect 2021-04-11 21:15:30 +02:00
Michal Dorner 58ed00ec48 Update README 2021-04-11 20:49:05 +02:00
Michal Dorner 02eeef4973 Fix undefined instead of ref in log output 2021-04-07 22:41:22 +02:00
Michal Dorner 37a6d38b2d Add ref input parameter 2021-04-07 22:32:59 +02:00
Michal Dorner 208adf42c8 Ignore error when some tag on remote was updated 2021-03-29 17:09:18 +02:00
Michal Dorner a6989ad592 Get full ref name without multiple invocations to git show-ref 2021-03-26 00:05:48 +01:00
Michal Dorner 6d8169070c Improve logging 2021-03-25 23:45:44 +01:00
Michal Dorner 3d4a25053b Update dist 2021-03-25 23:39:10 +01:00
Michal Dorner e59197f91b Fix change detection when base is tag 2021-03-25 23:34:50 +01:00
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 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 b5fa2d5c02 Add list-files: csv format 2021-02-20 11:21:30 +01:00
Michal Dorner c2766acabb Add ${FILTER_NAME}_count output 2021-01-29 19:54:44 +01:00
Ruben Laban 2c79a825c0 Fix grouping 2021-01-26 12:22:37 +01:00
Michal Dorner 9e8c9af501 Add "changes" output variable to support matrix job configuration 2020-12-17 22:33: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 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
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