Commit Graph

55 Commits

Author SHA1 Message Date
Josh Dales
b1a2f85ed8 Update debugging indentation on the branch checks 2023-03-27 16:37:55 -04:00
Josh Dales
67604ee822 Update more debugging statements 2023-03-27 16:26:58 -04:00
Josh Dales
4be192c7d6 Run the build command 2023-03-27 16:23:04 -04:00
Josh Dales
210043eed1 Run the build command 2023-03-25 19:09:30 -04:00
Josh Dales
29382eb4ff Build command 2023-03-25 17:42:44 -04:00
Josh Dales
62f22bdebe Run the build command 2023-03-25 17:24:52 -04:00
Josh Dales
49676461cb Run the build command 2023-03-24 22:29:57 -04:00
Josh Dales
5d0a66ed59 Run the build command again 2023-03-23 09:09:29 -04:00
Josh Dales
9bfc9998ab Run build and fix bad merge 2023-03-23 09:08:08 -04:00
Josh Dales
8e6367ddee Merge branch 'main' into main 2023-03-23 09:02:46 -04:00
Adam Azarchs
751921c443 fix: correct reading of sync-labels input. (#480)
* fix: correct reading of sync-labels input.

Contrary to the assumptions made in the unit tests, core.getInput
always returns a string, and !!'false' is true.

Also updates the unit test to reduce changes of regressions by ensuring
that the mocked getInput returns a string, as it would in production.

Fixes https://github.com/actions/labeler/issues/112

Make sure test catches regressions.

* Rebuild dist/index.js.
2023-03-23 10:47:14 +01:00
Milos Pantic
468a5e0250 Rebuild minimatch (#522)
* Rebuild minimatch and adapt changed interface

* Apply formatting

* Update minimatch license
2023-03-23 10:45:05 +01:00
Josh Dales
1c9c27e128 Run the build command 2023-03-20 21:53:16 -04:00
Josh Dales
7741e57c6a Run the build command 2023-03-18 17:16:58 -04:00
Josh Dales
90ef37079a Merge branch 'actions:main' into main 2023-03-18 16:44:40 -04:00
Ivan
8d81f881dd Add and configure ESLint and update configuration for Prettier (#508)
* Add ESLint and update Prettier

* Rebuild action

* Update package.json
2023-03-09 15:02:17 +02:00
Josh Dales
84e83a9b19 Merge branch 'main' into main 2023-03-08 18:10:37 -05:00
Michaël De Boey
ba790c862c feat: default repo-token to github.token (#227)
* feat: default `repo-token` to `github.token`

* Update README.md

* Update labeler.ts

* Update index.js

* Update action.yml

* Update dist/index.js

* Update index.js

* Update dist/index.js
2023-03-07 12:25:56 +01:00
Josh Dales
da83a1845f Make sure that the changed files config values are an array 2023-02-19 18:10:19 -05:00
Josh Dales
ed31b27f2e Rename some functions and variables to match what they are doing 2023-02-19 16:46:14 -05:00
Josh Dales
09f085373a Fix some typos in the branch checks 2023-02-19 12:17:15 -05:00
Josh Dales
b071d82cb8 Run the build command 2023-01-29 15:09:44 -05:00
Josh Dales
7b1327b4c4 Run the build command 2023-01-11 17:12:22 -05:00
Josh Dales
7f8d8e472d Merge branch 'main' into main 2023-01-11 17:02:22 -05:00
MaksimZhukov
36adcc2cb2 Update licenses and dependencies (#477) 2023-01-09 15:27:57 +01:00
IvanZosimov
ce7f13552d Rebuild project 2022-12-19 17:18:39 +01:00
IvanZosimov
e63db1786a Update licenses and rebuild action 2022-12-19 16:48:00 +01:00
Francesco Renzi
d8fb392051 Update @actions/core to 1.10.0 2022-10-06 11:51:14 +01:00
Josh Dales
0861fa5acc Run the build command 2022-08-30 17:24:00 -04:00
Josh Dales
0ad789cf22 Merge branch 'main' into main 2022-08-29 20:37:19 -04:00
Cory Miller
493ae8a9ee re-build package 2022-08-11 15:43:30 -04:00
Josh Dales
71fc664414 run the build script 2021-10-28 22:34:51 -04:00
Josh Dales
2246b667c6 Run build 2021-09-29 10:33:07 -04:00
Amiel Martin
2ced1f3255 Run build 2021-09-15 09:24:05 -08:00
Amiel Martin
8aa7614bc1 Run build 2021-09-15 09:16:56 -08:00
Josh Dales
765934f274 Run build 2021-08-07 15:26:22 -04:00
dependabot[bot]
9b2da75f4b Bump @actions/github from 2.2.0 to 5.0.0 (#161)
* Bump @actions/github from 2.2.0 to 5.0.0

Bumps [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github) from 2.2.0 to 5.0.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github)

---
updated-dependencies:
- dependency-name: "@actions/github"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* update licensed cache

* Code changes to support github 5.0

* regenerate dist/index

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Patrick Ellis <patrick.j.ellis@gmail.com>
2021-06-21 11:39:52 -04:00
Patrick Ellis
b2730a2b56 regenerate dist/index.js 2021-06-17 15:17:17 -04:00
Patrick Ellis
ecdb2919bd regenerate dist/index.js 2021-06-17 15:14:37 -04:00
Patrick Ellis
d5a6e81a0b Merge branch 'main' into upgrade-js-yaml-to-4 2021-06-14 18:43:21 -04:00
Patrick Ellis
5235463eb5 Upgrade ncc to 0.28.6 2021-06-11 19:01:54 -04:00
Patrick Ellis
3424206184 Upgrade js-yaml to 4.0
The only code change is switching `safeLoad` (which was removed) for `load` (which is "safe" by default now)

https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md#400---2021-01-03
2021-06-11 18:54:48 -04:00
Patrick Ellis
f0414a79d7 Upgrade Typescript to 4.3
Also necessitated upgrading ts-jest to 27.0 and jest to 26.0
2021-06-04 22:57:32 -04:00
Patrick Ellis
c97a9580dd Update prettier to 2.3.0 and re-prettify everything
Gotta love those trailing commas!
2021-06-04 16:14:32 -04:00
Patrick Ellis
84a53dc124 Regenerate dist/index.js 2021-06-04 15:43:55 -04:00
Patrick Ellis
f2e6c011a1 rebuild dist/index.js 2021-06-04 15:00:20 -04:00
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