Commit Graph

30 Commits

Author SHA1 Message Date
81c90ccae8 Change detection using git "three dot" diff (#35)
* Rework change detection via `git diff`

Previous implementation performed simple diff between two versions. New implementation fetches on demand more commits to have the merge base between two branches. Now it will detect only changes introduced by branch that was pushed, instead of mixing with changes introduced meanwhile on the base branch.
2020-09-01 22:47:38 +02:00
3f845744aa Export files matching rules (#32)
* Export files matching rules

* Improve debug output

* Fix PR test workflow

* Always quote output path + fix PR test

* Use proper single quote escaping in workflow file

* Improve error handling and docs for list-files input parameter
2020-08-30 21:18:14 +02:00
483986d0a7 Merge branch 'master' into develop 2020-08-14 22:03:31 +02:00
3b817c9974 Add support for pull_request_target (#30)
Complements previous commit:
 - adds modified index.js
 - bumps version to 2.2.1
v2.2.1
2020-08-13 21:55:56 +02:00
b365bd8768 Update main.ts (#29)
Add support for the new `pull_request_target` event.
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target
2020-08-13 21:44:57 +02:00
f34047f516 Export changed files grouped by change status (#23) 2020-08-04 20:57:29 +02:00
1ff702da35 Extend filter syntax with optional specification of file status: add, modified, deleted (#22)
* Add support for specification of change type (add,modified,delete)

* Use NULL as separator in git-diff command output

* Improve PR test workflow

* Fix the workflow file
2020-08-04 20:57:29 +02:00
caef9bef1f Add working-directory input (#21) 2020-08-04 20:57:29 +02:00
14dd70c742 Add develop branch to PR verification 2020-08-04 20:57:29 +02:00
e1ae9889cb Fix multiple jobs workflow example (#25) 2020-07-16 12:33:30 +02:00
83deb9f037 Improve change detection for feature branches (#16)
* Detect changes against configured base branch

* Update README and action.yml

* Add job.outputs example

* Update CHANGELOG
v2.2.0
2020-06-24 21:53:31 +02:00
7d201829e2 Support reusable paths blocks via yaml anchors (#13)
* Add support for nested arrays of path expressions

* Remove pull_request trigger type options

Default value is fine: opened, synchronize, reopened

* Add CHANGELOG

* Update README
v2.1.0
2020-06-19 23:39:06 +02:00
4eb15bc267 Update README
Add links to pull_request / push events that trigger workflows
2020-06-15 22:15:38 +02:00
9ef7936e79 Fix URL in README 2020-06-15 21:57:00 +02:00
affb29871a Support push event (#10)
* Support triggering from push event
* Add self-test to build workflow
* Update action metadata
v2.0.0
2020-06-15 21:49:10 +02:00
910e8b1235 Update README.md (#11)
* Update README.md

* Update version
2020-06-14 23:04:35 +02:00
1cbb925a17 Change detection via git + rename githubToken to token (#9) v1 v1.1.0 2020-05-26 17:16:09 +02:00
a2e5f9f7bb Filters input accepts path to external yaml file (#8)
* Filters input accepts path to external yaml file

* Fix formatting and eslint issues

* Fix file ext of filters yaml file

* Update documentation in README file
2020-05-24 22:50:33 +02:00
0612377665 Do not require user provided githubToken input (configure default) (#7)
* Do not require user provided `githubToken` input  (configure default)

* Remove `edited` from workflow example

Idea of this example was to show setup where CI runs only when particular files are changed. Triggering workflow when name or description of PR is edited is not needed for this use case.
2020-05-24 21:17:51 +02:00
0c9e16cc6d Update dependencies (#6) v1.0.1 2020-05-23 14:23:31 +02:00
9b321c4b3a Fix status badge 2020-05-21 14:56:45 +02:00
25327a213e Fix README & status badge (#5) 2020-05-21 14:53:14 +02:00
29d498d99d Fix globbing, update metadata, update ncc (#4)
* Enable minimatch dot option
It's not a default globbing behavior, however for our use-case is much more convenient to match those files.

* Update README and package.json
v1.0.0
2020-05-21 13:46:48 +02:00
f9b6173f5e Fixes - making action pass self-test (#3)
* Remove accidental string interpolation from action.yml

* Fix test workflow filters

* Improve self-test

* Add test case for matching any changed file

* Fix workflow test - step `name` was used instead of `id`

* Extend default pull_request trigger types

* Remove `edited` trigger to avoid executing workflow on non-code changes
2020-05-21 01:37:33 +02:00
94603ab6f7 Update test workflow (#2) 2020-05-21 01:07:35 +02:00
350b8cb78b Rename github-token input to githubToken 2020-05-21 00:41:27 +02:00
f29479bb44 Update README and action metadata 2020-05-21 00:31:39 +02:00
4e726dd036 Implement fetching, filtering and tests 2020-05-21 00:31:16 +02:00
d475d5da26 Bump acorn from 5.7.3 to 5.7.4 (#1)
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-05-20 17:05:57 +02:00
b78de5e86b Initial commit 2020-05-20 17:03:08 +02:00