Commit Graph

109 Commits

Author SHA1 Message Date
David Kale
9042c970f2 Update zeit->vercel 2020-09-08 14:00:23 -04:00
David Kale
fa244eaba5 Paginate and remove old labels (#96)
* Paginate to get all changed files. Add option to remove labels

* build

* format and build
2020-09-08 13:09:16 -04:00
Jameel Al-Aziz
efc1b29f09 Fix "any" matching when not all globs match (#75)
The previous logic had a bug where the "any" pattern list could match
against changed files even when not all globs matched a single changed
file. The bug arose individual globs in the "any" list were tested
against all changed files individually. Therefore, as long as at least
one changed file matched an individual glob in the list, a successful
match would be found.

The correct behavior is to match all the globs in the list against each
individual file. This ensures that is possible to define exlcusions
correctly and matched the documented behavior.
2020-06-19 10:55:47 -04:00
Jameel Al-Aziz
4b52aec09b Add support for exclusions (#22)
* Add support for exclusions

Paths can be negated to stop searching through the remaining patterns in
a the glob list. All changed files tested and at least one matching file
will result in a label being added.

Fixes actions/labeler#9

* Add support for "AND"-ed matches

A new "rich" matcher object can be provided instead of a normal glob.

The matcher object has two fields that accept an array of globs:
* Globs in "all" must all match every changed file.
* Globs in "some" must all match at least one changed file.

Combined with negated globs, this allows for a precise control of when
labels are applied.

* Rename `some` to `any`

* Update README
2020-06-01 17:01:37 -04:00
PJ Quirk
937b16c09f Rerun build/pack 2020-05-12 16:00:39 -04:00
PJ Quirk
ce29b1babf Fixed build/pack steps to be more predictable 2020-05-12 14:26:07 -04:00
PJ Quirk
06ad9709b1 Bump actions/core to 1.2.4 2020-05-12 14:08:27 -04:00
PJ Quirk
912b1d0ff0 Bumping actions/github to 2.2.0 2020-05-08 17:07:38 -04:00
David Kale
d2c408e7ed V3 preview (#53)
* Covert to use ncc, publish under name Labeler

* Get the filename right
2020-03-05 12:57:26 -05:00